cli: fix broken pipe

Change-Id: I64e56d1386bd9f10435df8ec69cdf877d7bcbec8
Signed-off-by: Michael Pasternak <mpastern@redhat.com>