Allow failure finalizers to access the exact throwable that failed the test

When a test fails due to an exception, it may be useful to allow the code in finalizers to see that exception.