Better error handling in the TestHarness
closes #3329