write out uncaught exceptions to file