Fixed delayed mode logging bug.
Fixed delayed mode logging bug.

mLogger was being set and cleaned up too early.  Also removed some
duplicate code.

digitalbazaar/monarch,digitalbazaar/monarch,digitalbazaar/monarch,digitalbazaar/monarch,digitalbazaar/monarch