/// <summary> /// Close connection to Spark API /// </summary> internal void Disconnect() { lock (_syncLock) { if (ConnectionStatus != SparkConnectionStatus.Disconnected) { Spark.Disconnect(); } Spark.Exit(); _isInitiated = false; } }