Microchips. If you take a dog into a vet and say "its a stray, kill it now", they will scan for a chip with owner details to discuss medical care with the owners. In my eyes, this is equivalent to stealing a toddler from a family and just killing it for no reason. Except dogs are SO MUCH BETTER THAN TODDLERS.