log blocks no longer cause an infinite loop on shutdown
Logging no longer has a depth limit
Merge branch 'fix-logging-on-exit'