Legally, death ends a marriage.