if (exitCode != 0) {
throw new ProcessNonZeroExitCodeException(process, exitCode);
}
} catch (InterruptedException e) {
LOG.info("InterruptedException!, killing the process", e);
interactiveProcess.destroy();
} finally {
interactiveProcess.disconnect();
}
}
}