I still think that order was given so that the captain had private time with ophelia. I would find it weird that he was torturing her, to then open the door not 5 minutes into it and tell macheath to take the other girls away.