We do not step out of the world when we pray; we merely see the world in a different setting. The self is not the hub, but the spoke of the revolving wheel. In prayer we shift the center of living from self-consciousness to self-surrender. God is the center, the Source, toward which all forces tend, and we are the flowing, the ebb and flow of God's tides. Prayer takes the mind out of the narrowness of self-interest, and enables us to see the world in the mirror of the holy.
Naturally, most of us would like to die a peaceful death, but it is clear that we cannot hope to die peacefully if our lives have been full of violence, or if our minds have mostly been agitated by emotions like anger, attachment, or fear. So if we wish to die well, we must learn how to live well: Hoping for a peaceful death, we must cultivate peace in our mind, and in our way of life.