Log uncaught exceptions to stdout.