If any person to whom the work, or any portion of the work, in the improvement district has been let fails to perform the work according to the terms specified in the contract, then the cash deposit shall be forfeited for the benefit of the district and be paid into its fund; or if bond has been given by the contracting party so failing, then recovery of the damages sustained may be had by suit in the name of the payee in the bond for the use of the district, and the damage or judgment collected and paid into the fund of the district.