Open/close index support
Merge pull request #112 from dpetek/hotfix-openclose

Open/close index support