added exception callback functionality to StackInterceptor