Improve error message when client doesn't connect to server