Add option to avoid reporting uncaught exceptions.