How al-Qaeda survived the war on terror