public void closeAllSockets() throws IOException {
		for(int i = 0; i < sockets.size(); i++) {
			Channel channel = sockets.get(i);
			channel.oldClose();
		}		
	}
	
//	private class IdHolder {
//		private Object id = "(Id not assigned yet)";
//		public void setId(Object id) {
//			this.id = id;
//		}
//		public String toString() {
//			return id+"";
//		}
//	}