Added a close listener so clients can implement actions for when a connection officially closes.

...server has officially closed