wait will wait for all children and this was not actually waiting on any specific children, so no loop needed.