Don't try to close from ~BufferedIndexOutput
Handle memory when there was an error flushing buffer
Merge branch 'master' into OCLIncrementalStore