This is so that when a child dies after the parent, it still holds a valid pointer and can call supervisor->kill() safely.