When he had made sure that the wires were stouter than his teeth , he wisely stopped trying to get out in that way , and made up his mind that the only thing to do was to watch for a chance to slip out , if the door of the cage should happen to be left unfastened .