set up logger to dump fatal exceptions to logs before quitting