code: func (s *GitScanner) Close() {
  	s.mu.Lock()
  	defer s.mu.Unlock()
  
  	if s.closed {
  		return
  	}
  
  	s.closed = true
  	tracerx.PerformanceSince("scan", s.started)
  }
docs: // Close stops exits once all processing has stopped, and all resources are
  // tracked and cleaned up.