The main engineering lesson of Jurassic Park is to consider whether fail safe is actually deadly. It depends, are you more afraid of a fire or rampaging "velociraptors"?
In the case of housing dinosaurs, there really isn’t a fail safe scenario, apart from marooning TRex to some sort of canyon, much like how lions are often housed in zoos.