If recovery on the bond should be inadequate to pay the amounts found due all such persons, judgment shall be given to each person for his pro rata of the amount of recovery. The surety company may pay into court for distribution among such claimants and creditors the full amount of the penalty named in the bond, less any amount which such surety company may have paid to the public corporation by reason of the execution of such bond, and upon so doing the surety company shall be relieved from further liability.
SDCL 5-21-7