Termination of election
An election under this subsection shall terminate at the earliest of the following times:
(A) Revocation by taxpayers If either taxpayer revokes the election, as of the first taxable year for which the last day prescribed by law for filing the return of tax under chapter 1 has not yet occurred.
(B) Death In the case of the death of either spouse, as of the beginning of the first taxable year of the spouse who survives following the taxable year in which such death occurred; except that if the spouse who survives is a citizen or resident of the United States who is a surviving spouse entitled to the benefits of section 2, the time provided by this subparagraph shall be as of the close of the last taxable year for which such individual is entitled to the benefits of section 2.
(C) Legal separation In the case of the legal separation of the couple under a decree of divorce or of separate maintenance, as of the beginning of the taxable year in which such legal separation occurs.
(D) Termination by Secretary At the time provided in paragraph (5).