Section 80. At any time after default of the defendant, the court may order forfeited the money, bonds or bank books deposited at the time of the recognizance and the court or clerk of the court with whom the deposit was made shall thereupon pay to the state treasurer any money so deposited. The clerk of the court shall immediately proceed to sell any bonds so deposited either at public or private sale, and shall forthwith pay the proceeds thereof, after deducting all expenses connected with such sale, to the state treasurer and if bank books are so deposited, the said clerk shall collect the amount of bail from the depository, and pay the same, less the expense of collection, to the state treasurer.