and ending with the month preceding the first month in which any of the following occurs: she remarries, dies, becomes entitled to an old-age insurance benefit equal to or exceeding the primary insurance amount (as determined after application of subparagraphs (B) and (C) of paragraph (2)) of such deceased individual, or, if she became entitled to such benefits before she attained age 60, subject to section
423
(e) of this title, the termination month (unless she attains retirement age (as defined in section
416
(l) of this title) on or before the last day of such termination month). For purposes of the preceding sentence, the termination month for any individual shall be the third month following the month in which her disability ceases; except that, in the case of an individual who has a period of trial work which ends as determined by application of section
422
(c)(4)(A) of this title, the termination month shall be the earlier of