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

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