code: func (ct *costTracker) stop() {
  	stopCh := make(chan struct{})
  	ct.stopCh <- stopCh
  	<-stopCh
  	if makeCostStats {
  		ct.printStats()
  	}
  }
docs: // stop stops the cost tracker and saves the cost factor statistics to the database