Far be it for me to sound like I'm defending the utter incompetence of #JoeTheFraud, but I'm not sure anybody could have executed any kind of withdrawal plan and not come out covered in shit.
What I mean is that a stable, basically honest government where corruption of public officials is seen by the governed to be stamped out vigoroisly would have been a prerequisite for this to have any kind of happy ending. And lo; what sort of Afghanis were the sort of people to be "Public Enemy No.1" to the Soviets, the Taliwhackers, the Opium cartels and just about any other faction in the region looking to enrich themselves? Exactly the sort of people with sufficient personal integrity to make that kind of good government stick. Our own 20 year occupation hasn't really done the region any favors in that regard either (that I'm aware of; if y'all are aware of efforts that I'm not, then PLEASE educate me).
That being the political calculus which obtains, it was almost inevitable that whenever we pulled out of Afghanistan, however we did it, this was going to be the outcome. The damn of it all is that the options available due to the Clinton Regime's corrupt mismanagement of the region and the Sept.11th attacks didn't allow for many alternatives to choose from at the time.