HSEARCH-2012 adds a new method closeIndexWriter() on IndexManager. This should only be exposed through DirectoryBasedIndexManager as it doesn't apply to other backends such as Lucene.