...is not an ending at all.
Endings leave purposelessness (a lovely word) and emptiness behind. Perfect ending is actually an intriguing and motivating beginning of something beautiful.
Like beginning of a new era after finishing an old one that left all kinds of (good) memories.
We're ending the day with a sunset bathed scenery, recalling the things we've been through, looking ahead into the new exciting tomorrow imagining what kind of new adventures await us behind that corner.
That allows us to peacefully doze off with a plan and inspiration for tomorrow.
That's what I call the perfect ending!