simpler exception_ptr check