[RM plugin] cleanup slurm component: close fd after env restore.
Merge pull request #11 from artpol84/fix_slurm

[RM plugin] cleanup slurm component: close fd after env restore.