Other people can enter (reinforcements and all that being plausible in a real military conflict), but once you're in you can't leave until either the other side is dead or you are.