/// <summary>
        /// Disposes the M&C service proxy and the internal time
        /// </summary>
        public void Dispose()
        {
            lock (this)
            {
                if (_disposed == false)
                {
                    if (_mcServiceProxy != null)
                    {
                        if (_mcServiceProxy != null)
                        {
                            _mcServiceProxy.Disconnect();
                        }
                    }
                    if (_timerRenewLease != null)
                    {
                        _timerRenewLease.Dispose();
                        _timerRenewLease = null;
                    }

                    // Note disposing has been done.
                    _disposed = true;
                }
            }
            GC.SuppressFinalize(this);
        }