This morning I had this very thought.
I keep my 12 girls (Golden Laced Wyandottes) locked in a very secure shed at night and every morning after daylight I let them our to their 10'X10' play yard with a 6' high fence and a canopy to protect them from .
We usually let them out of their play every evening for about 2 hours so that they can explore and enjoy the freedom around our house. We don't want the girls to be out too soon because they might attract neighbor hood dogs, feral cats and whatever else that hides in the woods. I really didn't want them to run out to the road.
This morning I accidentally didn't shut the gate and all of my girls got out. When I noticed that they were out, I ran outside, flapped my arms trying yelling "Here Chick, Chick" to shoo them back into their play yard. I got all of the of them in except for 3. When I would get them near the gate, I had to open the gate for them to get in when 2 more girls ran out. I would get some of them back into their yard and others got out. I ran around the yard for over 30 minutes flapping my arm and trying to get them back in. (Now, I'm a slightly over weight 71 year old woman) When I was totally exhausted, out of breath, and absolutely fried, I had quit chasing them. So the girls had a wonderful day out. I kept watching them every so often and counting beaks. They all went back into the hen house when it got dark. All of them were home, safe and sound. Whew.
We still got 5 eggs and I'm pretty sure they are scrambled eggs.
I really thought about what would be the best way to keep them safe is they get out again.
Kay