Flush, if appropriately configured, set the target to None and lose the buffer.
logging.handlers/MemoryHandler.close
MemoryHandler.close