add default uncaught exception handler to log uncaught exceptions to log
file