def stop(self):

        handler = self.handler
        if handler is not None:

            logger = logging.getLogger(__name__)
            logger.removeHandler(handler)

            handler.close()
            self.handler = None

        strbuf = self.strbuf
        if strbuf is not None:
            return strbuf.getvalue()
        else:
            return ""

    # -------------------------------------------------------------------------
Delete a network from an MCP 1 data center
dataset/ETHPy150Open sahana/eden/modules/s3log.py/S3LogRecorder.stop--crossover with--dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/dimensiondata.py/DimensionDataNodeDriver.ex_delete_network