abort finding before closing the document, fixes #6