When a notice issues against a person, as the bail of another, and the bail, at or before the term of the court at which he is bound to appear, or ought to plead, is not discharged from his liability by the death or surrender of his principal or otherwise, he is liable for all costs which accrue on said notice, notwithstanding he may be afterwards discharged, by the death or surrender of the principal, or otherwise.
N.C. Gen. Stat. § 1-438