Upon dissolution or winding up of said corporation's affairs, whether voluntary or involuntary, all of its
assets then remaining in the hands of the board of directors shall, after paying or making provision for payment of all of said corporation's liabilities, be distributed, transferred, conveyed, delivered, and paid over only to educational, scientific, literary, or charitable organizations that are exempt from
federal income tax under section 501 (c)(3) of the Internal Revenue Code of 1986, as amended, and which are not private foundations within the meaning of section 509 (a) of the Internal Revenue Code of 1986, as amended, on whatever terms and conditions and in whatever amounts the board of directors may determine, for use exclusively for educational, scientific, literary, or charitable purposes, except that no distribution shall be made to organizations
testing for public safety.