Track children pids for parallel jobs and wait on each individual pid so that its return status is read. This fixes errors being ignored.