Call `tg.Add()` at the beginning of exported hostdb metdhods
The hostdb uses a logger which writes to disk but doesn't call tg.Add
for all of its exported methods. That causes the logger to sometimes write to disk after the file handle has already been closed by the threadgroup.
The solution is to add handling for that at the beginning of all exported hostdb methods and make them return an error when called during a shutdown.