If any person, summoned as a witness under this chapter, shall fail, neglect or refuse to attend a trial or render at the time of sufficient excuse in the judgment of the court, the defaulting witness shall be liable to a penalty. If the case shall be continued on account of the witness's absence, the court may issue an attachment against such witness, requiring him to show cause on the day appointed for trial, why he should not be further dealt with for contempt. Any police officer, by virtue of such attachment, shall arrest and confine the person, so as to have him before the court at such time as may be appointed for further hearing of the original complaint.