Client no longer freezes when it fails to connect to the server.