Added additional security checks for EXCEPTION_MSVC.