The only way to avoid that was to leave long ago. It’s time to cut our losses and learn our lesson.
You can’t defeat Taliban for the reason it is not a formal organization. Taliban is a group of random towelheads with guns bearing that name.