Use logger for uncaught exceptions