made preparations to handle exceptions. had to rename GetClassName to GetExceptionClassName as it was conflicting with GetClassName user32.lib when linking