Catch all exceptions and log errors as error.