If any sheriff fails to collect or pay over fines, fees, costs, or other moneys adjudged to the state which he or she has been by proper process directed to collect, the sheriff forfeits his or her commissions and also is liable for a fine of $50, to be recovered by motion before the circuit court, after 10 days’ notice, and the sheriff’s sureties, if any, are also liable for the amount of such moneys upon his or her bond as sheriff.