I'll probably remember my family, loved ones, past friends and experiences, and dwell on the fact that I will no longer be here in a few minutes. My last thought will likely be an apology to my family and those who care about me before I slip out of consciousness and exit this world.
This is heartbreaking, but I can imagine myself thinking similar things.
Gosh, when we really come up against the apparent absurdity, tragedy and meaninglessness of existence, it's difficult to cope with.
I don't know if there is a wider purpose, or some kind of afterlife, or just anything to rectify the suffering some have to endure in this life, but it helps to think that there is. Perhaps that's wishful thinking, but wishful thoughts aren't always mistaken..