You can take all the steps in this list and more, but sometimes unforeseeable circumstances occur, and your pet does something dangerous. In this case, do your best to solve the problem quickly, whether by calling someone, turning off a device, or intervening yourself, and then teach that pet to not do that thing anymore through the proper training method.