public void Dispose() { Viewers.Internal.Values.ToList().ForEach(viewer => viewer.Dispose()); Segmenter.Dispose(); Thrust.Terminate(); Cuda.Terminate(); D3D11.Terminate(ref mDxgiFactory, ref mD3D11Device); Console.WriteLine("\nMojo terminating...\n"); }