Cremation would prevent this sort of thing too.
Cremation would also be a bit unpleasant if you aren’t dead yet; but, at least it would be over quicker.