fixed problem in process exit code handling: simplify previous commit