It’s quite rare for a president to die in office, but a handful have. And there are pretty well defined procedures for what happens at that point