I hope you went to the doctor and got yourself checked out for rabies....you never know what an unknown dog (domesticated or stray) might be carrying.
Unrestrained pets also pose a danger to themselves.
Imagine Fyedeaux starting to chew at the wires in an open device box....or playing with your electric drill!!!
That may also pose a liability for the electrician because the pet owner will blame you for their pet's demise!!! They'll say..."well why did you place your drill there," or "why did you leave that box open?"
"Well Madam, I was doing the work you hired me to do...."
"You'll be hearing from my lawyer!"
Yesterday I was re-wiring a neighbor's floor lamp (replacing badly chewed up cord and rotten candle sockets) whilst we were at her flat watching the Oscars.
I had to keep an eye where I dropped the little trimmings and pieces so my neighbor-friend's curious cat wouldn't start sniffing and possibly chewing on them. This is the same kitty that while trying to climb up me to get to the top of the couch, dug his left foot into my stomach and scratched. Didn't do it intentionally, but it still hurt like h@##....
P.S.: How do you keep a cat away from a lamp cord?