Setting them free and closing the illegal prison is the right thing to do. If I was calling the shots I would close it and release them.
BUT:
I just see why they haven't done it yet. It's a quagmire, with extreme consequences. Sure, let a prison full of "suspected terrorists" out into the world, what could go wrong?
How nice would it be to live in a world where we all trust each other and enjoy peace and harmony?