delete events before closing sockets
cosmetic
abort the connection when the connection is closed
do not store the client socket in the client

Let the connection handle it.