Brings back memories of a colleague a few years ago. Some of the senior IT guys (of which I was one) had 24x7 access to the building, but Dean (not his real name) and his colleagues didn't. You had to swipe in and swipe out of each floor.
Anyhow, the cut-off for non-24x7 cards was 9pm. You couldn't get in after that. And it turned out that you couldn't swipe out after 9pm either, thanks to an oversight of design. He finished up at about 9:45pm, and his swipe card wouldn't let him out. For safety reasons, of course, there was a break-glass button on the door and so he used it to make good his escape.
The next morning all hell broke loose. Poor guy was dragged into a meeting with senior people to receive a major b**locking for using the emergency button. Happily I got wind of this and stuck my nose in and was able to point out that: (a) the third-party security guard was supposed to do a sweep of the building at 9pm prompt and was conspicuous by his absence; and (b) the reason Dean didn't call the security company to be rescued was that there was no signage along the lines of "In the event of a security emergency, call <number>" and he had no idea of what the company was called (and why would he - he wasn't on the extended security list).
Happily he was exonerated and the security company were "asked" to explain what happened to the 9pm sweep.