The prince would have to open the east gate for the offering, and then go out and shut the gate after him.