cli: /disconnect on exit only if not already disconnected

Change-Id: I7fa77a1fdd4db73c84c398d8c4ab7499cd967250
Signed-off-by: Michael pasternak <mpastern@redhat.com>