Add the exception handler only for the current thread Reviewed-by: dholmes, sspitsyn, thartmann
Reviewed-by: mseledtsov, sspitsyn, erikj