In American culture, movies and novels typically conclude with a happy ending. After a long struggle, the author lets justice prevail and the good guys triumph.
God, the Author of Life (Acts 3:15), is also into happy endings. His happy ending is "immeasurably more than we ask or imagine" (Eph 3:20) — "life on high in Christ Jesus" (Phil 3:14). Yet it is sometimes difficult to resist the temptation to question God's handling of endings in this earthly life.
Moses' ending seems tragic. He endured forty years of revolt and grumbling, faithfully shepherding the Israelites to the border of the Promised Land. Yet God refused to allow him to enter the land (Dt 34:4). But without Moses' demise, the Israelites would never have followed Joshua as their new leader. If Moses had a "good ending" in the Promised Land, he might have then died without publicly commissioning Joshua, leaving Israel weak and in disarray.
Our heritage is not so much the final outcome, but rather the day to day privilege of having God present in our midst (Mt 18:20). Each day in God's service is its own reward (Is 49:4). If we daily focus on Jesus present with us, Jesus will be "the End" for us (Rv 22:13). Any circumstantial worldly ending will not leave us disappointed (Rm 5:5), for our hopes lie firmly in Jesus, the Lord of the End. "Let this, then, be the end" (2 Mc 15:39).