track stopping state using a goroutine
fmt