They must have been alive in the surface for at least 2 minutes, in or out of a ship. If they die on impact, market stays open.
If a man is lost and presumed dead at least 30 days it's yes. If a woman, it's no.
If both men and women are lost presumed dead then market stays open. If we never find out what happened market stays open. If someone else dies or is assumed dead they begin to count after the previous mixed group has been lost 30 days. If we later find out who died first from a previously lost group over 30 days, that can resolve the market of nobody else has died since then.
Basically we try to find out what actually happened first, but if a group is lost for 30 days then we give up on them. If we later find out about them they can still count.
And overall if someone is lost 30 days we assume dead. Being out of contact is not the same as being lost. It only counts if they're lost without expectation of survival.
If they die attempting to return to earth it counts if they hadn't taken off yet. But as soon as the ship leaves the ground they can't count as dying on Mars til they spend 2min on surface again.