For purposes of the terminating election under section 1377(a)(2) and paragraph (b) of this section, a shareholder's entire interest in an S corporation is terminated on the occurrence of any event through which a shareholder's entire stock ownership in the S corporation ceases, including a sale, exchange, or other disposition of all of the stock held by the shareholder; a gift under section 102(a