def close(self):
        self.flush()
        self.target = None
        BufferingHandler.close(self)
Flush, set the target to None and lose the buffer.
dataset/ETHPy150Open babble/babble/include/jython/Lib/logging/handlers.py/MemoryHandler.close