The dog only had a single trick to save his life. So, when he saw the danger approaching, he used the trick and managed to save himself.