Prevent the unit test framework from hanging on some exceptions