intercept exceptions on the $root