An action cannot be maintained against the sheriff for a rescue or for an escape of a person arrested upon an execution or commitment, if after that person's rescue or escape and before the commencement of the action the prisoner returns to the jail or is retaken by the sheriff or by any other person.
Utah Code § 17-22-19