No officer performing any duty under any of the provisions of RCW
28A.225.010 through
28A.225.140, or under the provisions of any rules that may be passed in pursuance hereof, shall in any wise become liable for any costs that may accrue in the performance of any duty prescribed by RCW
28A.225.010 through
28A.225.140.