As in your case, it happened because we forgot to latch the door. Fortunately, the hotel staff didn't come all the way into the room so they couldn't see me. They saw Mistress, however. She told them the room was occupied and they quickly departed. It was very alarming and pretty darn awkward. My heart was going pitter patter...
The experience didn't stop me from playing in hotels though.