 The ending scene was filmed at a California State Prison in the  desert, and during filming, the prison guards had a situation with  the inmates and had to go into lockdown, with half the film crew  inside the front gates and half of them outside. Three hours later  when the lockdown ended, filming resumed.