If you go to the other country you need visa. If you do not, you will arrest.
For a split second I thought there was a country generous enough to offer pizza to people who were leaving by airplane.
It sounds like it would have to be an authoritarian country like China or North Korea, especially for it's own citizens. On the other hand, it may be just the second portion of a visa, issued together with the entry visa.