AfterCreateScript executes even after event error

We have a AfterCreateScript in IdentityNow, but the script execute every time after the event, even the event with error.

Exists a way to script execute only in sucess case the event?

Thanks