Whenever it appears to the Department of Banking and Finance that the assets of any association or corporation organized under the laws of this state for the purpose set forth in section 8-302 do not equal the liabilities, that it is conducting its business in an unsafe or unauthorized manner, that it is jeopardizing the interest of its members, or that it is unsafe for such association or corporation to transact business, the department shall take possession of the books, records, and assets of every description of such association or corporation, and the department shall have full authority to retain such possession as against any mesne or final process issued by any court against such association or corporation whose property has been taken possession of by the department, pending the further proceedings specified in sections 8-301 to 8-340.01. If such possession is refused by the secretary, managing officer, or person in charge of such association or corporation, the department shall communicate such fact to the Attorney General together with a copy of such order of possession and it shall become the duty of the Attorney General to apply to the Court of Appeals or to the district court or county court of the county where such association or corporation is located or to a judge of any such court for a writ of assistance in placing the department in immediate possession of such association or corporation. It shall be sufficient to authorize the issuance of the writ and the taking possession of such association or corporation under the writ if it is made to appear that possession was refused.