Added error handling in setup/teardown for test suites.