public final void close() { if (!isClosed) { isClosed = true; admin.logoutAgentChannel(this); SimulationAgent proxy = this.proxy; if (proxy != null) { this.proxy = null; proxy.removeAgentChannel(this); } } closeChannel(); }