Catching errors in item delete