Ensure that fds are closed before exec()ing workers