private void DisposeEngineCore() { _queryEngine.UnloadAsync().Wait(); _queryEngine.Dispose(); _scheduler.Dispose(); _subjectManager.Clear(); }