The commission, or another law enforcement agency in whose possession it is, must return a seized thing in the possession of the commission or agency to its owner—
(a) if the thing is required as evidence for a prosecution and subject to any order made by a court—at the end of the prosecution and any appeal from the prosecution; or
(b) immediately the commission or agency stops being satisfied its retention as evidence is necessary.