code: public void stopBySendingNewLineIntoProcess(Process process)
  			throws IOException, InterruptedException {
  		if (process != null) {
  			BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(
  					process.getOutputStream()));
  
  			writer.newLine();
  
  			writer.flush();
  
  			process.waitFor();
  		}
  	}
docs: Stops process by sending new line to it's output stream.
  
  The process can be stopped by calling destroy() method.
  
  @param process
  of type Process
  @throws IOException
  when
  @throws InterruptedException