A Harvard senior studying in the Harvard Law School Library last weekend encountered every undergraduate’s worst nightmare: confusing the library’s hours of operation, Timothy S. Kim accidentally stayed past the closing time and was locked inside the building, according to an article posted Wednesday on the Harvard Crimson’s FlyBy Blog. Worse, he had left his cell phone in his dorm room.

How did Kim manage to escape? Like any good college student, he updated his Facebook status.

According to the Crimson, Kim turned to friends online for assistance:

He turned once again to his only connection to the outside world: his laptop. He wrote a surprisingly calm e-mail to the PBHA and Dunster House lists, among others, in which he requested help escaping.

At about 1:30 a.m., someone suggested over e-mail that he call HUPD—but Kim still didn’t have a phone.

“There are some comfy bean bag chairs on fourth floor of ILS,” Kim said. “I thought, if I have to spend the night here, that’s what will happen.”

Eventually, he decided to contact HUPD—via Skype.

“There was a strange person coming out of the elevator, which kind of freaked me out,” he said. “But then I realized, oh, it’s just a HUPD guy.”

Click here to read the full story on the FlyByBlog.