Any officer to whom any such warrant may be directed and delivered, who shall fail to execute or return the same, or to perform any duty required of him in relation thereto, shall forfeit not more than one thousand nor less than one hundred dollars, to be recovered by civil action, to the use of the county.