Such attachment may be directed to the sheriff or any deputy of any county in which the witness may be found, and shall be executed in the same manner as a warrant; and the fees of the officer for issuing and serving the same shall be paid by the person against whom the same was issued, unless he or she shows reasonable cause, to the satisfaction of the judge, for his or her omission to attend; in which case the party requiring such attachment shall pay all such costs.