Add a connection timeout option to agent.