Just as at the moment of coming into the world, when we die we are afraid of the unknown. But fear is something internal that has nothing to do with reality.
It's not enough to just think about death, but one must always keep it in front. Then life becomes more solemn, more important, more fruitful, and joyful.