In all cases of embezzlement and fraudulent breach of trust, where it appears to the court that the defendant has made settlement before the time of trial, and the prosecutor fails to attend and prosecute, the court shall tax the prosecutor with all costs of the case.