Improve test framework: return after fail()

So that functions can be used during teardown()