In case any such depository or disbursing agent so selected, who or which shall have given a bond with corporate surety, shall, in the due course of transacting its or his duties as such, deposit the funds in its or his hands as such depository and disbursing agent in any bank open and transacting a general banking business, and such funds so deposited should be lost by the failure of such bank, then and in that event the sureties on the bond of such county depository and disbursing agent shall be relieved of liability as such sureties to the extent of the amount so lost by reason of the failure of such bank.