code: func (process *TeleportProcess) Close() error {
  	process.BroadcastEvent(Event{Name: TeleportExitEvent})
  
  	process.Config.Keygen.Close()
  
  	var errors []error
  	localAuth := process.getLocalAuth()
  	if localAuth != nil {
  		errors = append(errors, process.localAuth.Close())
  	}
  
  	if process.storage != nil {
  		errors = append(errors, process.storage.Close())
  	}
  
  	return trace.NewAggregate(errors...)
  }
docs: // Close broadcasts close signals and exits immediately