(1) The state attorney may, with the approval of the Department of Financial Services, compromise and settle all judgments, claims, and demands in favor of the state in his or her circuit against defaulting collectors of revenue, sheriffs and other officers, and the sureties on their bonds, on such terms as the state attorney may deem equitable and proper.
(2) Any such compromise or settlement may be made with any of the sureties of such defaulting officer as to his or her individual liability, and a receipt to such surety shall be a discharge of his or her obligation; but the discharge of one or more of the sureties so compromised and settled with shall not operate as a discharge of the principal or other sureties from the judgment, claim, or demand in favor of the state.