COAS vows to take war on terror to logical conclusion