Ridiculous ending spoilers
Aubsolutely no purpose to it. We didn't get to see the reactions, there is no chance for revenge in the future... Just randomly 'Hey, lets kill a main character in the last minute of the show!' The worst ending I've ever seen in a movie.
I think they must have been hoping for a sequal, but this movie didn't go over well enough.
---
That's some bad hat, Harry.