IOUtils.closeQuietly(process.getOutputStream());
process.destroy();
// Wait while output copiers exit
processStandardOutputThread.shutdownCapture();
processStandardErrorThread.shutdownCapture();
// Compose the result
LocalCommandActionResult result = new LocalCommandActionResult();
result.setStatus(processExecutionThread.getStatus());
result.setExitCode(processExecutionThread.getExitCode());