Section 20F. If the accused is admitted to bail, and fails to appear and surrender himself according to the conditions of his bond or undertaking, such court or justice, by proper order, shall declare the bond or undertaking forfeited and order his immediate arrest without warrant if he be within this commonwealth. Recovery may be had on such bonds or undertakings in the name of the commonwealth as in the case of other bonds or undertakings given by persons accused in criminal proceedings within this commonwealth.