def free_logger(logger):
    """
	Frees the resources held by the loggers created through make_logger or make_mem_logger.
	This is used for file cleanup and for handler removal (logger objects are re-used).
	"""
    try:
        for x in logger.handlers:
            x.close()
            logger.removeHandler(x)
    except Exception:
        pass
