title: Can't kill child process on Windows
body: <p>The following will never exit</p>
  
  <pre><code>var child_process = require('child_process');
  
  var ps = child_process.spawn('.\\node_modules\\.bin\\babel.cmd', ['input.js', '--out-file', 'output.js', '--watch']);
  
  ps.on('exit', function() {
    console.log('exit');
  });
  
  ps.on('close', function() {
    console.log('close');
  });
  
  setTimeout(function () {
    ps.kill();
  }, 2000);
  </code></pre>
  
  <p>What's going on here? also what is the correct thing to do here? The only way to make this process actually close is to kill the parent process. I suspect it's waiting for stdio to flush or something like that?</p>
  
  <p>It does die if it is given an <code>'ignore'</code> stdio configuration, but I need the streams.</p>
  
  <pre><code>var ps = child_process.spawn('.\\node_modules\\.bin\\babel.cmd', ['test.js', '--out-file', 'output.js', '--watch'], {
      stdio: 'ignore'
  });
  </code></pre>