private void signal(JSONPacket event) {
for(AllEventListener listener:listeners) event.signal(listener);
}
public void close() throws IOException {
send(new Logout());
for (ScheduledFuture<?> future : pollers.values()) {
future.cancel(false);
}
executor.shutdown();
super.close();