The defendant arrested under such order may, at any time pending the case, give bond to the officer making the arrest. Such bond shall be taken by such officer and returned by him to the clerk of the court from which the order issued, and the same shall be filed in such clerk's office.