Improve error messages when we can't communicate with the server.