highly prejudicial to the interests of the defendant, it may, through the control which it exercises over its own order, refuse to allow a discontinuance,—as, for instance, where a counterclaim is set up against which the statute of limitations would be a bar (Van Allen v. Schemerhorn, 14 How. Prac. 287); or where in an action for divorce upon-the ground of adultery countercharges of adultery by the plaintiff are alleged in the answer (Campbell v. Campbell, 12 Hun, 636 ); or in an action of ejectment where the plaintiff having recovered judgment and been put into possession of the premises, the defendant paid the costs and took a new trial under the statute (
Carleton v. Darcy, 75 N. Y. 375 ). It has also been held that leave to discontinue will be withheld where the obvious purpose of the plaintiff is to harass the defendant (Livermore v. Berdell, 60 How. Prac. 308); or where the public may be regarded as a party to, and interested in the result of, the action (Winans v. Winans, supra). In short, the rule as stated in the case last cited will justify “the right to refuse leave whenever circumstances exist which afford a basis for the exercise of legal discretion.” And, we think, the present case clearly falls within the principle thus enunciated. The defendants are receivers of a corporation which has been duly dissolved by a judgment of this ■court. As such, they are officers of the court whose duty it is to secure and ratably distribute the assets of the corporation to all of its creditors with as little delay and expense as possible. In the discharge of this duty it appears that certain actions were brought by them upon a large number of notes made or indorsed by the plaintiff Kruger in the firm name of “E. H. Kruger & Co.”; that in several of these actions the subject-matter of this action was set up as a -counterclaim, but that when these actions were brought
to trial the counterclaims were withdrawn, and the action tried upon other issues tendered by the answers, and that judgments were subsequently obtained therein against Kruger, whereupon he brought the action which he is now seeking to discontinue. This procedure upon the part of the plaintiff plainly indicates either an attempt to annoy and harass, or an effort to obtain priority over other creditors by commencing still another proceeding in the state of North Carolina, where it seems the plaintiff resides, and the defendants have come into possession of some property belonging to the trust estate which they represent. In either case the inevitable result of the plaintiff’s course will be to embarrass the receivers in their efforts to execute the trust which the court has imposed upon them, and to impair the trust fund to the prejudice of the rights of a large number of creditors. 31oreover, if the object sought be to commence another proceeding in another state, the court by permitting discontinuance would, indirectly at least, sanction an attempt by one creditor to obtain priority over the other creditors, and thus enable him to defeat one of the most salutary provisions of the law applicable to cases of this character. People v. Trust Co.,
150 N. Y. 117 , 44 N. E. 949 . It would seem hardly necessary to suggest that in these circumstances the trial court was invested with a larger discretion than it would ordinarily possess when dealing with applications for leave to discontinue actions, and that its exercise of that discretion ought not to be con