No receiver may be appointed by any court for any credit union, except that a court otherwise having jurisdiction may in case of imminent necessity appoint a temporary receiver to take possession of and preserve the assets of the credit union. Immediately upon appointment, the clerk of the court shall notify the director in writing of the appointment and the director shall appoint a receiver to take possession of the credit union and the temporary receiver shall upon demand surrender possession of the assets of the credit union to the receiver. The receiver may in due course pay the temporary receiver out of the assets of the credit union, subject to the approval of the court.