I have been thinking about this, and I believe that if life doesn't make all you have passed worthwhile in the end then there is no sense living until the end.
The problem is that sometimes is difficult to imagine how things will have a good ending after passing some time only with problems. I remember the life of some of my uncles who are already dead and my grandfather, and I am not sure if it ended well with every problem solved like in a movie.
I think life must get great at some point, like in those movies where everything magically ends in a good way. The problem is that sometimes it doesn't make sense if your life ends in a good way. I mean, if your life was a movie then sometimes the history will not make sense if your life ends well, like in that movie "Stranger than fiction".
But I think that if things don't turn out to become suddenly very good for more miraculous and intangible than that good would seem, then life is stupid.