Catch all errors before bailing out.