delete exception handling