Will you at that moment look to God, and maybe ask Him something?
You know, the one that doesn't exist?
I guess it depends on how quickly the end approaches.
If someone told me I had 10 minutes to live I really don't know how I would react. Would my intellect take a back seat and would I be overcome with emotion and perhaps have an emotional breakdown? Probably. Would I be afraid and even terrified? Yes
If I knew I had 6 months to live I would be left with a longer time to contemplate my life and the impending end. Perhaps I might grasp onto the idea of an afterlife out of fear and the desire to continue my existence. Perhaps I might not. I really don't know. Whatever the answers I came up with they would no doubt in part be fueled by emotions. To what extent I really don't know either.
Anyways the primary cause of death is birth. We can't control either but we can control what happens in between. My life really is not directed around how I might or will act when my time is up. The present is the only place I will ever live. When my time arrives I will deal with it as it comes.