Actually, retreating too late makes you lose some carrots, since all your units die. Your units are reimbursed if they successfully retreat. Though, the mechanic is maybe a bit complicated to understand in the current iteration.
Oh, I didn’t know that’s how that worked, but that’s a pretty clever way of doing that!