Added proper closing of index accessor in lucene IT.