As Allen said, use a queen "includer" between the bottom board and the hive body for 2-3 days until they settle down. This will keep the queen from leaving and still allows the workers to come and go. This is assuming that the queen is too big to get through the excluder.
I learned this last year when I caught a swarm, boxed it, and found nobody was home later in the day. :-D