public static void remove(SnmpAgent snmpAgent) throws IOException,
			InterruptedException {

		snmpAgents.remove(snmpAgent).getIP();
		activeAgents--;

		if (activeAgents == 0) {
			snmp.close();
			t.join();
		}
	}