Such a programmed death would be extremely hard to do, risky and not necessary.
You could try to introduce a weakness to a particular poison (one that is not actually poisonous to anything you might want to introduce later), but that would be selected out against pretty fast. And genedrift would probably remove it even before you actually introduce the poison.
A vital dependency on some specific substance wouldn't work either. For one thing, you'd have to provide that substance Mars-wide, and also there would be a strong selection pressure to get around that dependency.
You could try to come up with some other timing methods. But genetical engineering is not magic.