close all indices