Read this, about negotiations with the Iraqi government about the terms for our troops being there. We dethroned Saddam Hussein and set up a freely-elected government. That mission actually was accomplished. The way out of Iraq is to leave when that government requests us to.