// shutdown twice
agent.shutdown();
sleep(5000);
assertThat(console1.getAllAttachedAgentsCount(), is(0));
agent.shutdown();
sleep(5000);
assertThat(console1.getAllAttachedAgentsCount(), is(0));
// Even shutdown twice, agent is well connected into console.
agent.run(console1.getConsolePort());