Either way. There was no plan to handle any scenarios. Keeping our military there forever is not a plan as well, especially with no status of forces agreement under Bush or Obama.
ISIS was/is a natural event that has only been held in check with dictators in the ME.
ISIS grew largely because of a Dictator in Syria blowing his own people up.