Log uncaught exceptions.