wrap goroutine with endless loop.