cli: "exit" command fails after "disconnect" from script #971285

Change-Id: Ie4a3807e9016d7a6007d938c0ca9aad50f9c50d9
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=971285
Signed-off-by: Michael pasternak <mpastern@redhat.com>