⟩ How would you be paranoid and intervene for retaining good employees?
Now by the time they take another job, it is too late. Even if a raise would work then, which it will not, the relationship is damaged at that point anyway.
But it is not necessarily too late when they start to interview. It may be, in its own way, a plea of exasperation as much as anything else. If you can fix whatever is at issue, you can usually keep him or her.