'Unmount all cgroups and remove the mountdir'

def __del__(self):

    for i in range(len(self.modules[0])):
        if self.modules[2][i]:
            try:
                utils.system(('umount    %s    -l' % self.modules[1][i]))
            except Exception as failure_detail:
                logging.warn("CGM:    Couldn't    unmount    %s    directory:    %s", self.modules[1][i], failure_detail)
    try:
        if self.rm_mountdir:
            shutil.rmtree(self.mountdir)
    except Exception:
        logging.warn("CGM:    Couldn't    remove    the    %s    directory", self.mountdir)
