Added the ability to respond to uncaught exceptions.