wait_all_children should be called after _wait_all_children_with_timeout.