Problem: inelegant exit code in cmdpipe handler

Solution: simplify this.