In case the damages or amount of compensation for such right-of-way, together with the estimated costs of the improvement, amount to more than the maximum amount of benefits which will be derived from said improvement, or, if said improvement is not practicable, or will not be conducive to the public health, welfare and convenience, or will not increase the public revenue, or will not have sufficient outlet, the court shall dismiss such proceedings, and in such case a judgment shall be rendered for the costs of said proceedings against said district, and no further proceedings shall be had or done therein; and upon the payment of the costs, said organization shall be dissolved by decree of said court.