Email Notification on Failure Leaver Event

We need to disable user’s WebService based account, whenever user’s cloudLifecycleState of a specific identity profile changes to inactive. WebService based source is configured under Disable accounts under that identity profile.
Account is disabled if there is no error, but if there is a failure, then we need to send an email to an identity with actual error response that target system returns.
We tried using Search Events but IdentityNow is not capturing the error response thrown by target system and the result is always Success.
Could anyone suggest a workaround for this?