catch exceptions that occur during error reporting