When the agreement provided for by section 4971.14 of the Revised Code is made and filed, notice of it given, and proof thereof made or offered to be made in the court in which the proceedings are pending, the court shall dismiss the proceedings. Such court may make such order or decree touching the costs and expenses of the proceeding as it deems just.