Ensure all spawned children terminate.