How long did you have the bees after capture?
I have heard of captured swams leaving a day or two after being placed in a hive. I had one gone with in a couple of hours after collecting it. The best way to keep a swarm from leaving is to furnish them with brood. Then there is always the queen excluder on the bottom board preventing her from leaving.