ditg-control-server: Handle error on waitpid() gracefully.