change test exception handling to actually work

exceptions occurring inside the test framework when in parallel aren't handled properly, and cause the framework to hang.