Removed dead code
Added exception as paramter to the undefinedExceptionHandler