Engine: make game continue after death as if the PC would still be alive

I can't remember which game it was, where I did see this "behaviour" but I think it's beneficial. The main menu could be forced on the player when the PC's death animation finished just as done ATM.

And what would that be good for?
An enemy could then disappear using a custom animation, using a boat (that played a role in a used mod) or do other non-default actions. You'd see guards go back to the place they came from or your companion stops fighting and plunders your remains (all done by mods) … this would greatly support the atmosphere.