The cost of vacating, removing, closing, and/or demolition by the county shall be a lien for such amount against the real property upon which the cost was incurred. The lien shall attach to the real property upon the payment of all costs of action against the property by the county and the filing by the county of any complaint or orders as in the lis pendens docket and is provided in O.C.G.A. ยง 41-2-12(f) in the office of the clerk of the superior court on the lien dockets(s) maintained for such purposes. If the dwelling or building is demolished under a contract that results in payment by a contractor to the county, the proceeds of such sale shall be credited against the cost of the demolition; and any balance remaining shall be deposited by the public officer in the superior court of the county and shall be secured and disbursed in such manner as may be order by such court.