class DRb::DRbUNIXSocket

def close

def close
  return unless @socket
  shutdown # DRbProtocol#shutdown
  path = @socket.path if @server_mode
  @socket.close
  File.unlink(path) if @server_mode
  @socket = nil
  close_shutdown_pipe
end