title: SetUnhandledExceptionFilter in electron node native module disables crash reporter
body: <p>I have a native node module running in an electron application and I want to log all unhandled exceptions so I use the following snippet:</p>
  
  <pre><code>LONG WINAPI unhandledExceptionFilter(PEXCEPTION_POINTERS)
  {
      return EXCEPTION_EXECUTE_HANDLER; // 1
      return EXCEPTION_CONTINUE_EXECUTION; // 2
      return EXCEPTION_CONTINUE_SEARCH; // 3
  }
  
  SetUnhandledExceptionFilter(unhandledExceptionFilter);
  AddVectoredExceptionHandler(0, unhandledExceptionFilter);
  </code></pre>
  
  <p>The problem is that when I use <em>SetUnhandledExceptionFilter</em> electron crash reporting will not work anymore (I have it set up to send a log file to some server). I also tried all possible return values but none work.</p>
  
  <p>What am I doing wrong ? and how to get this to work ?</p>
  
  <p>Some more info:</p>
  
  <ul>
  <li>Window 7 64 bit</li>
  <li>Application is 32bit</li>
  <li>Electron version 1.7.10</li>
  <li>Node version 8.1.3</li>
  <li><a href="https://github.com/electron/electron/blob/master/atom/common/crash_reporter/crash_reporter_win.cc" rel="nofollow noreferrer">Electron crash reporter</a></li>
  </ul>