Writing tip, how you shouldn’t end your composition (Part I)

Writing tip:

How would you feel if Ironman ended with Tony Stark waking up and realizing it’s all a dream?

Or the Harry Potter series ends with Harry waking up to realize he’s a Primary school kid in Singapore and it’s all a dream?

It’s quite an anti-climax, isn