Fix #257: Unregister the CuratorFramework service whenever the connection is completely lost