Host logging panic
This PR was ultimately inspired by a fix which could have been 5 lines, but while in the code I found some stuff which needed cleanup. And then I felt compelled to write a regression test.
Regression test is passing, shutdown for the host tester is cleaner, and some of the files are now sorted alphabetically.