Writes entire shutdown sequence to log file
- no lines lost when the main thread is shutdown