Any surety on the official bond of any county, city, town, or township officer or on the official bond of any executor, administrator, guardian or on the bond or undertaking of any person where by law a bond or undertaking is required may be released from all liability thereon accruing from and after proper proceedings had therefor, as provided in this part.
§ 2-9-522, MCA