If the bond or security deposit is discharged, an order to that effect shall be entered upon the records of the court, board or commission with a statement of the amount to be returned to the person making the deposit. Upon presentation to the treasurer of a copy of such order, duly certified by the clerk of the court, board or commission making the same, the treasurer shall pay to the person named therein or to the order of the person the amount specified or shall return the securities, as the case may be. If the bond or security deposit is forfeited, an order to that effect shall be entered upon the records of the court, board or commission, and upon presentation to the treasurer of a copy of such order, certified by the chief clerk of the court, board or commission making the same, the treasurer shall make such disposition of the money or securities as the order shall provide. In case the money or securities are in the hands of the clerk of the court, board or commission at the time the bond or security deposit is declared discharged or forfeited, the clerk shall make the same disposition of the money or securities as the treasurer would be required to make in similar circumstances. Whenever the order of the court, board or commission requires or contemplates the same, the treasurer or clerk shall indorse to the proper party any certified check deposited with the treasurer or clerk as security. Money or securities deposited under ORS 22.020 to 22.070 shall not be subject to garnishment.
ORS 22.050