/// <summary>
        /// Called when exiting play mode
        /// </summary>
        public static void ExitPlayMode()
        {
            // Bail Out Check
            if (!InPlayMode || InstanceHandle == 0)
            {
                return;
            }

            // Clean up anything left in writing the files
            Recording.CloseRecording(InstanceHandle);

            InstanceHandle = 0;

            // Set Flag
            InPlayMode = false;
        }