void OnApplicationQuit() { // uninitialize Kinect interaction if (interactionInited) { InteractionWrapper.FinishKinectInteraction(); InteractionWrapper.ShutdownKinectSensor(); interactionInited = false; } }