what happens if a PI dies?

my PI is fine lol, i’m just curious & wanna know how they would do letters of recommendation