fixed bug in transient exception detection