catch dependency deletion errors