Add a handler to grab uncaught exceptions to submit later