Event handler is set for the entire dtsx package on error. There is a script task within which if an exception occurs, before the catch in the script could be executed and the variables could be unlocked, the control goes to event handler where the same variable is referenced. This behavior is leading to deadlock on that variable. Is there anyway to catch the exception and then trigger event handler only for this task?