Counter-offer

A counter-offer is an improved package from a candidate's current employer to retain them after they resign. Counter-offers are a common cause of late-stage offer declines, and acceptance often precedes departure within a year anyway.

The mitigation is discussing the possibility during the process rather than reacting when it happens.