adds close() for index readers before setting to null
Merge pull request #893 from sergiocontrino/i603bis

adds close() for index readers before setting to null