Handle exceptions in setup/teardown code

When a test failure occurs in the setup/teardown code, it should still
be handled by the framework.