Someone with a coherent philosophy of life will know what in life is worth attaining, and because this person has spent time trying to attain the thing in life he believed to be worth attaining, he has probably attained it, to the extent that it was possible for him to do so. Consequently, when it comes time for him to die, he will not feel cheated.