Making jobTreeSlave's main not leak file descriptors.