Added error alert when the server fails