Just compare the situation of US in Iraq.
US has left but now Iraq is in pieces.
US wanted to invade Syria but Russia denied it, so the destruction/invasion was outsourced to ISIS.
Now US would not leave AFG fully, rather it would let the region engulfed in strife/civil war forever.