make sure whoosh searcher is properly closed