PCT-697: Agent is running but PCT says it's not

* PCT-697: Agent is running but PCT says it's not
* PCT-629: Agent running but not connected
The fact you copy&pasted code doesn't change my question :) It may be correct (unbuffered channel), but it's not obvious why this goroutine is needed.