How do I get out of the librarian scene?


Hint 1 of 2:
You'll want to go through that gate in the castle.

Hint 2 of 2:
So you need to open it.