close: set our 'live' flag to 'Exiting' and signal the event channel

This is the needed for the other end of the communication to detect that we
have shutdown, and it should return `Eof.

This is part of #24

Signed-off-by: David Scott <dave.scott@citrix.com>