Improved error handling of failed permission revocations