This is a suit in equity against the surety upon a bond given by the defendant in a writ of ne exeat, with this defendant company as surety, to reach and apply the interest of the surety company in a certain promissory note and in shares of stock in certain corporations which cannot be come at to be attached, and which are in the hands of the other defendant.
The proper execution of. the bond and the breach of it are not now in question. The matter in dispute is whether the surety was discharged from liability by reason of certain orders of court extending the time which was granted by the court to Richards, the principal on the bond, during which he might be absent from the Commonwealth. The condition of the bond recites the arrest of Richards under the writ of ne exeat, his giving bail *26not to go beyond the limits of the Commonwealth, that he was released on bail and was then at large in the custody of his sureties, and that the court had later granted him leave to go out of the Commonwealth, with liberty to be absent therefrom for a period not exceeding three months and fifteen days, upon first giving bond with sureties to the plaintiff in the sum of $4,000 that he would obey the orders and decrees of the court, made in the bill of complaint referred to in the writ. The bond then provides that the obligation shall be void if “ said Richards shall appear in person before said court at all times after the expiration of his said period of leave of absence when commanded by said court and shall pay to the plaintiff in said bill of complaint all sums of money that may be established in said bill to be due him from said Richards, within thirty days of the entry of the decree therefor, and shall obey all orders and decrees of said court,” etc. The bond is dated November 28, 1906.
On March 6, 1907, on the motion of Richards, a decree was entered by the court, extending the time allowed for his return as fixed by the decree of November 28, 1906, to May 1, 1907. Upon a similar motion granted on July 9, 1907, the court further extended the time allowed for Richards’ return to October 1, 1907. At the time of granting each of these extensions the plaintiff was present and objected to any extension of time by the court. Until just before the final decree against Richards, the surety, had no notice of either of these extensions of time, and it did not consent thereto. Richards was present in court on July 9, 1907, but on that day or a few days later he departed from the Commonwealth and has not returned. He has not paid the amount found due from him to the plaintiff, or any part of it.
We have no statutory provisions in this Commonwealth in regard to writs of ne exeat, and they are governed by the rules of the common law and of general equity jurisprudence. The object of such a writ is to secure to the plaintiff the presence of the defendant at the termination of the suit, either by his detention or by his giving equitable bail. Our elaborate statutory provisions in regard to bail in actions at law are not applicable in terms to equitable bail under writs of ne exeat. R. L. c. 169. But bail of the latter kind is closely analogous to *27bail in actions at law, and there is no reason why it should not be governed in general by the same rules. It has been held that the sureties upon such a bail bond, like sureties upon a bail bond at common law, may surrender their principal and be discharged from liability. See 2 Dan. Ch. Pl. & Pr. (5th ed.) 1713, n. 5 ; Johnson v. Clendenin, 5 Gill & J. (Md.) 463; Commissioner in Equity v. Phillips, 2 Hill, (S. C.) 631. Whether the surety upon this bond could at any time have surrendered the principal, and thereby have been discharged from liability, as the defendant contends, we do not find it necessary to decide.
The general principle that where the obligee in a bond voluntarily changes the conditions upon which the bond is given so as to enlarge or extend the liability of the surety for his principal, to his possible detriment, the surety is thereby discharged, does not apply to this case; for the plaintiff, to whom the bond was given, did all in his power to prevent the extension of time granted by the court. He did nothing that could relieve the surety from liability.
If it were in the power of the court to do anything that could deprive the obligee of his right to enforce this bond against the surety, which we do not intimate, we think it plain that the orders of the court had no such effect. Apart from the obligation of Richards to pay the plaintiff the amount that should be found due him, to which the decrees extending the time of his absence have no reference, the obligation to be performed was only to “ appear in person before said court . . . when commanded by said court.” The contract plainly implied that the litigation might continue for a considerable time, and that the court might command him to appear only when the exigencies of the case or the rights of the plaintiff made his presence necessary or proper. The surety could not complain that the court did not see fit to command his presence immediately after the expiration of the three months and fifteen days, or for ten months afterwards. The probability that the court would not command his presence at once after the expiration of the time first stated was involved in the terms of the writing, and should have been considered by the surety. The extensions of time did not affect the rights of the surety. They were merely assurances to Richards by the court that his presence would not be *28commanded until the expiration of the stated times. They related only to the commands referred to in the bond. They did not purport to give him a right to stay away from the Commonwealth as against any person who had a right to have him present.
If we assume, as the defendant contends, that the surety had a right to take him under the bond and surrender him to the sheriff or the jailer and be relieved from liability, the assurance of the court that he would not be commanded to appear there until the expiration of a stated time, was not and did not purport to be a decree that affected the rights of the surety growing out of the relations of the principal and surety under this peculiar contract. If the surety had a right to surrender the principal, it had it without reference to the time when the judge might choose to command the principal’s presence in court. If, on the other hand, the surety did not have this right of surrender, its legal status in reference to the principal was not affected. It could do nothing but wait for the termination of the suit with entire uncertainty as to the times when the court might think it necessary or proper to command the presence of. the principal. The fact that the court saw fit to inform the principal that he would not be commanded to appear for a certain time, did not change the legal relations of the surety to the plaintiff, or create conditions different from those which the contract impliedly permitted when the defendant signed it. Decree affirmed.