Deal with problem connecting to server.