Cirrus, it doesn't make any difference for what reason you wanted to leave.
You have the right to leave anytime and nobody can stop or delay you from doing so.
That is true for all the countries of the world.
However to claim that one was imprisoned, that would to be confined in a physically segregated area, while actually you were left free to wander around finding your way out