When a person in a criminal prosecution is under bond (1) to appear and answer, (2) to prosecute an appeal, or (3) to testify in court, and fails to perform the conditions of the bond, the default must be recorded. The court shall issue process against some or all of the persons bound by the bond as the prosecuting officer directs. If a person under bond fails to perform the conditions of the bond, the law enforcement authorities shall apprehend that person in the manner provided in rule 6.03 of the Rules of Criminal Procedure. After default on a bond, a surety may, with permission of the court, pay to the county treasurer or court administrator the amount for which the surety was bound as surety, with costs as the court may direct. Payment may be made either before or after process is issued. When it is made, the surety is fully discharged of any obligation under the bond.