If the person bound appear before the circuit court according to his obligation, he shall be discharged by the court, unless he be demanded by some person authorized by the governor of this state to demand him, or unless the court shall commit him if he were improperly admitted to bail, or shall require him to give a new bond or recognizance if his bail be insufficient, or shall order his bond or recognizance at first given to continue in force for a longer time; but any such person may at any time be taken into custody by any person authorized by the governor of this state, and such taking into custody shall be a discharge from any bail he may have given.