There is a difficult balance sometimes in a story between a happy ending and a sad ending. There is something fulfilling about everything turning out for the best, especially when things in real life are full of chaos. At the same time the happy ending can at times feel cliche or too neat if not done exactly right. It is important that the ending fit the overall mood of the story and not just pander. There are definitely times that it can feel like the ending of a story is designed to please the audience more than fulfill the story itself.