If any informer, under a penal statute, to whom the penalty, or any part thereof, if recovered, is given, shall dismiss his suit or prosecution, or fail in the same, he shall pay all costs accruing on such suit or prosecution, unless he be an officer whose duty it is to commence the same.
Okla. Stat. tit. 22, § 1274