Add exception trap to force exit code 1

Just as it says. Fixes an issue i noticed while working on the regression where failures in the tests themselves didn't cause a build failure if they made the tests break so hard the test system gave up.