A prisoner committed to jail pursuant to RSA597:7 may at any time recognize agreeably to the order to recognize for his appearance, before a justice, and thereupon the justice shall issue his warrant for the discharge of the prisoner, and he shall be discharged from custody.
RSA 597:8
GS 240:8. GL 258:8. PS 252:17. PL 366 :20. RL 425:20.