Revert "Made sure nothing tries to use the logger before it's initialized. Added lots of logging messages, mostly debugs. Made some comments. Changed the exit/shutdown procedure."

This reverts commit 1698be8a7a8688a5863b80bce74bb45792277c60.