robus
Lowcountry Low Roller
It feels like you're getting into that unfortunate territory some DMs do, where they're too keen on their monsters/NPCs to let them get killed, and insist on violently bending or even breaking the rules just to deprive the PCs of a victory that they actually earned (or that you granted them by messing up your own tactics/rolls). I mean, if you wanted to flee, you should have run earlier, not when you were at such risk from OAs that you were going to get creamed by them.
In my defense the PCs did get opportunity attacks as expected when the monster gave up and made a break for it. I didn't want it to flee early, I wanted it to fight like the pissed off Tarrasque it was. It only fled when it finally got through its thick skull that it was losing (which is not a thing it had ever experienced before).
It's a problem with singular monsters and NPCs. Unless they can teleport or put on an extreme burst of speed or something, you just can't expect them to succeed in fleeing, and should design the encounter accordingly.
I appreciate the assumption that there was no design to my encounter. In actual fact, the tarrasque was imprisoned in a McGuffin the PCs needed for other purposes. The only way to get the McGuffin was to release the tarrasque and thus they planned very carefully for expected battle and designed a killing field basically. Despite all their preparations it was still a tense and exciting combat, but they prevailed in the end.
So I'd say mission accomplished except for my narration cock-up which would have been easily averted if I'd just remembered, in the moment, that the players need to have a clear recital of the state of play, before being invited to act and not rely on the fact that I'd just effectively narrated the state of play with the creature's action.