adding support for opening indexes that are in a closed state

For #212