The close event is emitted when the connection is closed.
The open event happens when the connection is opened and ready for writing
The close event is emitted when the connection is closed.