Add an error message for when connection to the server is lost. Then cleanup