Catch all exceptions (testing).