bugfix to catch exceptions when reconnecting the daemon

fix for the zkhgc