'Close the memory handler, but don\'t set the target to None.'

def close(self):

    target = self.target
    if (sys.version_info < (2, 7)):
        logging.handlers.MemoryHandler.close(self)
    else:
        super(MemoryHandler, self).close()
    self.target = target
