Dogs bring loads of joy but also perils on a leash