If the prisoner is admitted to bail, and fails to appear and surrender according to the conditions of the bond, the judge by proper order shall declare the bond forfeited and order the prisoner’s immediate arrest without warrant if the prisoner is within this state. Recovery may be had on the bond in the name of the state as in the case of other bonds given by the accused in criminal proceedings within this state.