Add error handling for RemoveExtendedAttribute