remove the socket on disconnection