Debtor expenses, etc.
5. Where the debtor appears at the hearing, the travelling expenses paid to him may, if the judge so directs, be allowed as expenses of a witness, but if the debtor appears at the hearing and no order of committal is made, the judge may allow to the debtor, by way of set-off or otherwise, his proper costs, including compensation for loss of time, as upon an attendance by a defendant at a trial in court.