added some try / catch code for index add/drop