issue-33: Added funcctionality to open and close indexes.