Log all uncaught exceptions to logfile
Merge branch 'exceptionlogging'