Don't log while destroying a logger
Merge pull request #180 from Metaswitch/logger_crash

[Reviewer: Andy] Don't log while destroying a logger