RELOAD-208 Implement a mechanism for detecting a protocol version

Fix when no disconnection message is send from the server, the client won't show an alert message.