Better error handling for test runner.