You do know the messy pull out of Afghanistan was a peace deal agreed to by prior governments (without the consent of the Aphgani government no less) could they have done better, absolutely but the way you are framing it is hardly unbiased.
As for countries deciding to not rely upon America, that has long been a desire, but the previous administration drove it home like a stake through the heart. Having lived outside of the US for most of the last five years I can’t fully express how far the US has fallen in the eyes of the world, and just how much of a joke we are these days.