Remove event listeners when client disconnects