cw.c: simplify process execution and exit.