Registration also involves statistics and diagnostics upload, for the purposes of remote management. This means there will be long-running goroutines in effect. Therefore move the code to a service model.