Added a MemoryHandler to buffer the FileHandler.
Added additional logging.