The best way to keep your dog safe when you're not home is to use a physical fence or an electronic dog door. You should ensure that your dog has a collar that fits correctly and that you regularly check the transmitter to make sure it's working perfectly.