We will never "solve" life, crack its ultimate code, or frame it with consistency. It is forever enigmatic and resists control by words or concepts. What is left to us is the rise and fall of a songline and the vision of a Great White Rose.
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.