I suppose when they got the treaty she wasn't any good to them any longer, and they were afraid to let her go.
She ceased to be useful to them after they signed the treaty.
They were quick to let her go after signing the treaty.