changed to `_closeDocuments`