Putting a dog in her bed for punishment did nothing at all..sorry but the dog would have no idea what the hell was going on. One of the best and safest things a good owner can and should do is to teach the dog to not run out the door. That way even if the door gets left open the dog will not leave...just takes a little time and could save your dogs life.