There is a reason pirates and terrorists were traditionally executed.
I’ve long been of the opinion that terrorists should be considered modern-day pirates. Pirates were considered to be at war with the rest of the world, but were also considered unlawful combatants. That’s why any navy that caught them executed them.
We get ourselves into a world of hurt by insisting that terrorists “must” fit into the categories of either criminals or POWs.