public bool StopRegion(UUID regionID, int secondsBeforeShutdown)
        {
            object remoteValue = InternalDoRemote(regionID, secondsBeforeShutdown);

            if (remoteValue != null || m_doRemoteOnly)
            {
                return(remoteValue == null ? false : (bool)remoteValue);
            }

            IScene scene;

            if (_sceneManager.TryGetScene(regionID, out scene))
            {
                _sceneManager.AllRegions--;
                _sceneManager.CloseRegion(scene, secondsBeforeShutdown == 0 ? ShutdownType.Immediate : ShutdownType.Delayed, secondsBeforeShutdown);
                return(true);
            }
            return(false);
        }