Test that the unhandled hook will immediately terminate the test and print the associated exception and stack trace.