try {
transferQueue.remove(0);
writeInt(AgentopiaConstants.MESSAGE_AGENT_COMING);
transmitter.transferAgentToStream(agent, dataOut);
Logger.getLogger().info("Agent \"" + agent + "\" left the system (" + marketPlace.getHomeId() + ") per Sustainer.");
agent.shutDown();
}
catch (IOException exc) {
// Agent sending failed... But no problem here.
Logger.getLogger().info("Agent \"" + agent + "\" failed to leave to \"" + targetId + "\"... and died.");
}