putting exception handling around dropping index