(a) To the insurer upon extinguishment by authorized reinsurance or otherwise of substantially all liability of the insurer for the security of which the deposit is held;
(b) To the insurer to the extent such deposit is in excess of the amount required; or
(c) 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.