Ariz. Rev. Stat. § 13-3974
A. A surety shall be relieved from liability on the appearance bond on which the defendant is released if one of the following applies:
3. Before the defendant is released to the custody of the surety, the defendant is released or transferred to the custody of another government agency, preventing the defendant from appearing in court on the date and time the defendant is ordered to appear, and the surety establishes both of the following:
C. Subsection A, paragraph 3 of this section does not apply if either: