Of course they had to have her killed, but everything was just sloppy. They barely tied up any of the interesting stories and I hate how they ended it with such obvious setups for spin offs.
It's been obvious throughout the series that she will burn Kings Landing imo. Westerosi have no love for Targaryans, all she has is fear and she wants to do a clean break and build for the future.