how to protect your dog from dying