Fix IndexDocument leak upon closing, due to referring to self in blocks: instead, use a strongSelf copy of a __weak self. Needs to be for *all* blocks, or IndexDocument still leaks.