private void FrmMainFormClosing(object sender, FormClosingEventArgs e) { handTracker?.StopGestureDetection(GestureData.GestureType.HandRaise); handTracker?.Dispose(); NiTE.Shutdown(); OpenNI.Shutdown(); }