added error message to console when server is not responding