refs #5406 hide loading indicator if any error occurs and make sure to display an error message. Not sure yet about any side effects