When mine did it, I would go out at about the time they would be starting to think about going to roost, and physically grab them, put them in the coop, and lock them in it before they had time to fly up there. If you repeat this enough times, they should get the idea and start going in on their...