According to https://stackoverflow.com/questions/28629351/is-addvectoredexceptionhandler-a-replacement-for-setunhandledexceptionfilter AddVectoredExceptionHandler gets notified every time an exception gets thrown and does not take into account whether that exception actually gets handled by the program.
What we want is SetUnhandledExceptionFilter.
According to https://stackoverflow.com/questions/28629351/is-addvectoredexceptionhandler-a-replacement-for-setunhandledexceptionfilter AddVectoredExceptionHandler gets notified every time an exception gets thrown and does not take into account whether that exception actually gets handled by the program.
What we want is SetUnhandledExceptionFilter.