final JobUndeployResponse response = client.undeploy(jobId, host).get();
if (response.getStatus() == JobUndeployResponse.Status.OK) {
if (!json) {
out.println("done");
} else {
out.printf(response.toJsonString());
}
} else {
if (!json) {
out.println("failed: " + response);
} else {