send uncaught exceptions to log file