Added a hook on SLTest for when exceptions are thrown.

We'd like to display some more debugging information about a test failure when it happens, so we've added a hook to support this.