A person committed for not finding sureties or refusing to recognize as required by the court or magistrate may recognize agreeably to the order before any justice, and, on payment of the costs of his application, he shall be discharged.
RSA 608:6
GS 238:6. GL 256:6. PS 259:6. PL 373 :6. RL 433:6.