(a) (1) In this section, “transfer” means the transfer of any interest in the stock of a close corporation, except:
(i) A transfer by operation of law to a personal representative, trustee in bankruptcy, receiver, guardian, or similar legal representative;
(ii) The acquisition of a lien or power of sale by an attachment, levy, or similar procedure; or
(iii) The creation or assignment of a security interest.
(2) A foreclosure sale or other transfer by a person who acquired his interest or power in a transaction described in paragraph (1) of this subsection is a transfer subject to all the provisions of this section. For purposes of the transfer, the person effecting the foreclosure sale or other transfer shall be treated as and have the rights of a holder of the stock under this section and § 4-602(b) of this title.
(b) A transfer of the stock of a close corporation is invalid unless:
(1) Every stockholder of the corporation consents to the transfer in writing within the 90 days before the date of the transfer; or
(2) The transfer is made under a provision of a unanimous stockholders’ agreement permitting the transfer to the corporation or to or in trust for the principal benefit of:
(i) One or more of the stockholders or security holders of the corporation or their wives, children, or grandchildren; or
(ii) One or more persons named in the agreement.