Added disconnect event on the client, if the connection to the server is lost.