CA-99541: Fix himn when a VM cannot connect to Xapi.

Signed-off-by: Jerome Maloberti <jerome.maloberti@citrix.com>
Merge pull request #1048 from jeromemaloberti/CA-99541

CA-99541: Fix himn when a VM cannot connect to Xapi.