Turning Iran into another Afghanistan would not have been a win for anyone with a memory longer than the last two election cycles.