/// <summary>
        ///     Called when the script stops.
        /// </summary>
        public override void Stop()
        {
            BackgroundThread.UnregisterTick(UpdateAttachments);

            foreach (var rope in _activeAttachments)
            {
                rope.Delete();
            }

            // Detach the web shooter helper,
            // and delete it and the rope.
            if (_webShooterHelper != null)
            {
                _webShooterRope.DetachEntity(_webShooterHelper);
                _webShooterRope.Delete();
                _webShooterHelper.Delete();
            }
        }