message: check for kill before killing
diff: @@ -37,12 +37,18 @@ export class AutoRestExtension extends EventEmitter {
  private static processes = new Array<ChildProcess>();
  public kill() {
  + if (!this.childProcess.killed) {
  + this.childProcess.once("error", (e) => { /*shhh!*/ });
  this.childProcess.kill();
  }
  + }
  public static killAll() {
  for (const each of AutoRestExtension.processes) {
  + if (!each.killed) {
  + each.once("error", (e) => { /*shhh!*/ });
  each.kill("SIGKILL");
  }
  + }
  AutoRestExtension.processes.length = 0;
  }
  