Yes, the door is closed during the game. However, you always have the option to get out. Your host can always open the door from the outside and you are always able to stop the game entirely. There is also a panic-button. Once you solve all the riddle, the door opens as well.