if((subprocess.exit_code() != 0)){
if (this.isIgnoreError()) this.getLogger().info("command terminated with exit code: " + subprocess.exit_code());
else throw new Exception("command terminated with exit code: " + subprocess.exit_code());
}
if((subprocess.termination_signal() != 0)){
if (this.isIgnoreSignal()) this.getLogger().info("command terminated with signal: " + subprocess.termination_signal());
else throw new Exception("command terminated with signal: " + subprocess.termination_signal());
}
if(!this.isIgnoreStderr() && !stdErrEmpty) {
throw new Exception("command terminated with output to stderr:\n" + stdErrString);