restore app to a usable state if there is an error when posting a comment or uploading a photo