Upon the discontinuance or withdrawal or denial of any petition for adoption, the court may make appropriate temporary orders concerning the care, custody and control of a minor child involved and may refer the minor child to the department of human services or to another appropriate agency or officer for action as in the case of a minor subject to section 571-11(1).