title: Closing all open command prompt leads to error in forked process in testNG
body: <p>I am using testNG for mobile automation and I want to close multiple command prompts(appium servers) which i launched. For this, I am using the below code</p>
  
  <pre><code>@AfterSuite
      public void closeCommandPrompts() throws IOException, InterruptedException{
      System.out.println("After suite");
      Thread.sleep(8000);
      Runtime.getRuntime().exec("taskkill /F /IM node.exe");
      System.out.println("closed node.exe");
      Runtime.getRuntime().exec("taskkill /F /IM cmd.exe");
  </code></pre>
  
  <p>The last line if I commnet it out works fine, however if they are not commented it gives an error in the forked process. </p>
  
  <p>I guess testNG is internally using command prompt which i am trying to close when iam using taskkilll in @aftersuite. </p>
  
  <p>Please help me in getting some work around.</p>