On dissolution or final liquidation of the corporation, any assets remaining after the discharge of all liabilities shall be distributed as provided by the board of governors, but in compliance with the bylaws. However, the assets of the corporation are irrevocably dedicated to charitable purposes and may not inure to the benefit of a private person except a fund, foundation, or organization operated exclusively for charitable purposes.