Planet shows star’s death does not have to doom its worlds