[Change] search module explicitly closes directories as well as index readers an writers