The surety for costs is bound for the payment of all costs which may be adjudged against the plaintiff in the court in which the action is brought or in any other to which it may be carried, and for costs of the plaintiff's witnesses, whether the plaintiff obtains judgment or not.
N.D.C.C. § 28-26-26