rhbz917897 Prevent AlreadyClosedException when IndexReader is closed