m_connectionPort = startMessage.getProperties().getInt(GrinderProperties.CONSOLE_PORT, 0);
agent.run(startMessage.getProperties());
final ConsoleCommunication conCom = consoleCommunication;
agent.resetListeners();
agent.addListener(new AgentShutDownListener() {
@Override
public void shutdownAgent() {
LOGGER.info("Send log for {}", testId);
sendLog(conCom, testId);
m_state = AgentControllerState.READY;