Close previous index.