Glad you enjoyed!
The door does not function on a per-minigame basis, but rather works on a cooldown after it opens. Remember that you can close your laptop too when you hear someone walk by, and you won't get caught while your laptop is waking up.
- Epsilon