Revert "add index open/close operations"

This reverts commit aec6b1856bbaa489ee9bd3d31cd64cfff5445fb9.

Please add tests.