Yes, Afghanistan is a quagmire, the longest war, and many American service personnel dead. How awful, huh? Eighteen years ago the Taliban were lynching their opponents from telephone poles and leaving them to rot to scare others.
The Russian- installed government had collapsed and stealing from the central bank worked for many that fled to somewhere safer. Watch this for guidance on how Islamic fighters think and lie then commit sneak attacks after making so-called peace agreements.
I recommend Prime Video or Netflix and search “21 Sarfarosh — Saraghari 1857.” It is long at 65 episodes but, is a finely made historical series. Watch it and make your own decision which side really seeks peace or not. Leaving Afghanistan will be worse than when the Americans departed Vietnam to fend for themselves, a disaster.