Fleeing is an option. Not steeling wooden spoons is also an option.

NPC AI is not going to be completely immersive in any RPG for the foreseeable future.
For D:OS 2, improvements are being made to the generic AI and the security system added, etc, but it is never going to hold up to NPCs in a particular situation acting realistically all the time.