shorten cgroups-related code, and try as much sysfs related stuff before exiting