More checks and asserts for wait_for_child_to_die()