fixed exception when process has non-zero exit status