In this week's parsha, Ha'azinu, Moses recites a poem praising God before he ascends Mount Nebo. He knows he will not be permitted to enter the Promised Land before he dies; he will only be able to look upon it from a distance. Moses is very near the end of his life at this moment, and we are very near the end of the Torah.
In our tradition, we celebrate both beginnings and endings. I've always found the final shofar blast at the end of Yom Kippur services to be rather celebratory, almost like a festive acknowledgement of all our hard work. We mark the end of Shabbat with candles, wine, and spices at Havdalah. And on Simchat Torah, after we read the last words of the Torah, we celebrate by immediately reading from Bresheit, the first book of the Torah.