Added an error message when connection to server is lost.