Leaving close to a million people in limbo poses a danger not only for the refugees but to regional peace.