analysis and fixing potential leaks leaving lucene readers open