FABRIC-583: Fix when the zookeeper service changes for a standalone conf...

...ig

Additional synchronisation to avoid problems when shutting down