If any witness so required to enter into a recognizance refuse to comply with such order, the associate circuit judge may commit him or her to prison until he or she comply with such order or be otherwise discharged according to law.