Add open/close methods on the index writer