Fix: Callbacks failing to exit cleanly
getDocument passes initial behaviour tests