Fix slurmstepd core dump if the cgroup hierarchy is not completed.
when terminating the job.