'Destructor'

def __del__(self):

    self.cgroups.sort(reverse=True)
    for pwd in self.cgroups[:]:
        for task in self.get_property('tasks', pwd):
            if task:
                self.set_root_cgroup(int(task))
        self.rm_cgroup(pwd)
