Fix for Exception class not being found in the current namespace