Add close(docId) support