@Override
	public void stop() {
		synchronized (lifecycleLock) {
			if (isRunning()) {
				process.destroy();
				running = false;
			}
		}
	}
Stop the process and close streams.
extensions/spring-xd-extension-process/src/main/java/org/springframework/xd/extension/process/ShellCommandProcessor.java