(a) All deposits in this state made under this title shall be held on deposit as long as there is outstanding any liability of the insurer with respect to which the deposit was made.
(b) Any such deposit shall be released and returned:
(1) To the insurer upon extinguishment by reinsurance in an insurer authorized to transact such insurance in this state, or otherwise, of all liability of the insurer for the security of which the deposit is held;
(2) To the insurer during solvency, to the extent such deposit is in excess of the amount required; or
(3) Upon proper order of a court of competent jurisdiction, to the receiver, conservator, rehabilitator, or liquidator of the insurer or to any other properly designated official, or officials, who succeed to the management and control of the insurer's assets.
(c) The Treasurer shall release any such deposit, or part thereof, upon written authorization of the commissioner and of the insurer or order of court, as provided in subsection (d) of Section 27-6-4.
(d) In the case of deposits of title insurers made under Section 27-3-13, the deposit or excess portion thereof shall be released by the trustee bank or trust company upon written authorization of the commissioner or upon order of a court of competent jurisdiction. If a foreign title insurer which has made such a deposit reincorporates under the laws of the State of Alabama and qualifies under this code as a domestic title insurer and if all of the liabilities of such foreign insurer in this state are assumed by such new domestic insurer and the foreign insurer does not thereafter transact business in this state, its deposit shall be delivered by such trustee to such new domestic insurer upon its application and the written authorization of the commissioner.
(e) This section shall not apply as to deposits held with respect to registered life insurance policies or registered annuity contracts insured under laws heretofore in force. Such deposits shall be released only as provided under the laws pursuant to which such policies and contracts were so issued and registered.