In the planning stage of a book, don't plan the ending. It has to be earned by all that will go before it.
Writing, Endings