Added error message when connection to server fails