Updates to index config and closing index on an out of memory error.
Updated libs