Palpatine is killed by a blaster shot fired by Han, but his spirit is captured by the mortally wounded
Jedi Empatojayos Brand. When Brand dies, he takes Palpatine's spirit with him into the netherworld of the Force, destroying the Sith Lord once and for all.