If they let her go, she could cause problems even larger than the ones solved by the treaty.
I suppose when they got the treaty she wasn't any good to them any longer, and they were afraid to let her go.