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
Ah, i thought your question is about style.
I think that this code was designed so because we need to be near real situation, where communication will be done via network or in separate processes.