On dismissal of an action to enforce a stop notice or bonded stop notice, unless expressly stated to be without prejudice, or on a judgment rendered against the claimant, the stop notice or bonded stop notice ceases to be effective and the monies withheld shall be paid or released to the person to whom they are due.
A.R.S. § 33-1064