If a creature returned to the battlefield by the unearth ability would leave it for any reason, it’s exiled instead—unless the spell or ability that’s causing the creature to leave the battlefield is actually trying to exile it. In that case, the spell or ability succeeds at exiling the creature. If the spell or ability later returns the creature card to the battlefield (as Astral Drift might, for example), the creature card will return as a new object with no relation to its previous existence. The unearth effect will no longer apply to it.