An old fashioned but quite effective way to end problems with POWs is to demand the otherside, in this case, AlQaida, sign a peace treaty. Absent a peace treaty within, e.g. 60 days, execute the POWs ~ after all, they are the enemy’s problem, not that of the people they attacked.
If the Germans had done that, we'd have never had "Hogan's Heroes."