Added a event to the remote client to know when a disconnection happens.