added optional onError callback to allow initialisation to continue even when connection to service discovery cluster is lost