(a) If at any time between the filing of a petition to adopt a minor and the issuance of the final order completing the adoption it appears to the court that the minor should not be adopted by the petitioners or the petition should be dismissed for some other reason, the court may dismiss the proceeding.
(b) The court, before entering an order to dismiss the proceeding, shall give at least five days' notice of the motion to dismiss to the parties, to the agency that made the report to the court, and to the Department of Health and Human Services. The parties and agency entitled to notice under this subsection, and the Department, shall be entitled to a hearing on the issue of dismissing the proceeding.
(c) If the court denies the petition, the custody of the minor shall revert to any agency or person having custody immediately before the filing of the petition. If the placement of the minor was a direct placement under Article 3 of this Chapter, the court shall notify the director of social services of the county in which the petition was filed of the dismissal, and the director of social services shall be responsible for taking appropriate action for the protection of the minor. (1949, c. 300; 1961, c. 186; 1969, c. 982; 1973, c. 476, s. 138; 1983, c. 454, s. 6.; 1995, c. 457, s. 2; 1997-215, s. 6(a); 1997-443, s. 11A.118(b).)