Well, there actually is "life after death", so there's that.
Assuming there wasn't, it could be done like this. When you die everything else continues on. By interacting with the environment in such a complex manner, you left "actions not yet finished" everywhere. That means, what you did in...