Handle case where child process has exited: command client prints error message instead of hanging