Any person arrested or held in custody by any officer in any civil action upon mesne process or process of execution, or who is surrendered in discharge of his bail, shall be discharged from arrest or custody by the officer upon compliance with the following requirements:
In case of the forfeiture of such bond by breach of any condition therein, the plaintiff, his executors or administrators, may bring an action thereon, and recover the debt, damages and costs due from such person, and for which such arrest was made.
N.J.S. § 2A:20-2