code: func (mtask *managedTask) cleanupCredentials() {
  	taskCredentialsID := mtask.GetCredentialsID()
  	if taskCredentialsID != "" {
  		mtask.credentialsManager.RemoveCredentials(taskCredentialsID)
  	}
  }
docs: // cleanupCredentials removes credentials for a stopped task