A town treasurer who refuses or neglects to comply with section 367.16 is guilty of a gross misdemeanor and shall also forfeit office as treasurer.