// Make sure to kill the Kinect on quitting.
    void OnApplicationQuit()
    {
        // Shutdown Speech Recognizer and Kinect
        FacetrackingWrapper.FinishFaceTracking();
        FacetrackingWrapper.ShutdownKinectSensor();

        facetrackingInitialized = false;
        instance = null;
    }