Well in the end we pretty much did walk away...after spending billions.
Timing is everything. Had we walked away sooner, we would not have made such a muck of things.
Had we made it known that we had no intention of staying long term, much resistance would have disappeared. Much bloodshed would not have occurred.