or to a state or local government for a public purpose and if not, shall be disposed of by the circuit court of the county in which the principal office of the organization is then located, exclusively for such purposes or to such organization or organizations as said court shall determine, which are organized and operated exclusively for such purposes.