(a) In all cases under this chapter, where the court deems it necessary or proper, a disinterested attorney may be appointed by the court to enter his appearance for the defendant and actively defend the cause.
(b) In any proceeding wherein the custody of a child is in question, the court may appoint a disinterested attorney to appear on behalf of the child and represent his best interests.
(c) An attorney appointed under this section may receive such compensation for his services as the court determines to be proper, which the court may order to be paid by either or both of the parties.
(d) Notwithstanding any other provision of law or any rule of court, the appearance of an attorney in any action under this chapter before a court of original jurisdiction shall be deemed to have terminated for the purpose of service of any motion, process, or any other pleading, upon completion of the case ending in a judgment, adjudication, decree, or final order from which no appeal has been taken when the time allowed for an appeal expires, and, if notice of appeal has been entered, upon the date of the final disposition of the appeal. There shall be no action required of any person or attorney under this subsection, but the court having jurisdiction over the matter may suspend the termination of the appearance on its own motion, or on the motion of any party to the case prior to the expiration of the time for appeal.