#186 precheck called after the trace and setting the exception handler