The board of directors shall wind up and settle the affairs of the cooperative, collect sums owing to it, liquidate its property and assets, pay and discharge its debts, obligations, and liabilities, other than those to patrons arising by reason of their patronage, and do all other things required to wind up its business. After paying or discharging or adequately providing for the payment or discharge of all its debts, obligations, and liabilities, other than those to patrons arising by reason of their patronage, the directors shall distribute remaining sums, first, to patrons for the pro rata return of all amounts standing to their credit by reason of their patronage and, second, to members for the pro rata repayment of membership fees. Sums then remaining shall be distributed among its members and former members in proportion to their patronage, except to the extent participation in the distribution has been legally waived. The board of directors shall thereupon authorize the execution of articles of dissolution. The presiding officer shall execute and acknowledge articles of dissolution on behalf of the cooperative and the officer designated by the board shall affix and attest to the seal.