/// <summary>
        /// Stops the current session
        /// </summary>
        public void StopSession()
        {
            _session.StopSession();

            if (_session_video_file_writer != null)
            {
                _session_video_file_writer.CloseFile();
                _session_video_file_writer = null;
            }
        }
        /// <summary>
        /// Starts a new session
        /// </summary>
        public void StartSession()
        {
            //Clear the plot and set up a new plot
            SetupPlot();

            //Start the new behavior session
            _session.StartSession();

            //Create a file to write the video recording of the session.
            _session_video_file_writer = new MMazeVideoFileWriter();
            _session_video_file_writer.CreateFile(_session.RatName, 1280, 920);
        }