For the majority of situations, in is preferably planned. On those instances where leaving would be better, I have a few places here and there to head to that are reasonably well equipped, and enough to keep me reasonably secure till I can get there, more or less.

No plan is foolproof, which is why the best thing I can do is gather intelligence and have the right mindset.
_________________________
The ultimate result of shielding men from the effects of folly is to fill the world with fools.
-- Herbert Spencer, English Philosopher (1820-1903)