Dying in a bad mood

What a shame it would be to die in a bad mood. Not surrounded by loved ones or running into battle or sacrificing yourself in some heroic effort. Just sitting in a chair, brooding, and you have a heart attack. Or, stamping down the stairs, cursing, and you slip and fall and break your neck. I guess, in some sense, all your troubles would be over. But how small they must seem, to your soul in the afterlife, looking back. From that perspective, I find it very hard to be in a bad mood.