try catch for destroying autocomplete plugin