Even if NATO rushes to the exits, Afghan collapse is not inevitable