public Container read(ObjectInputStream inputStream){
		Container inputMessage = null;
		try {
			try {
				if(!theEnd) {
					inputMessage  = (Container) inputStream.readObject();
					return inputMessage;
				}
			} catch (IOException ex) {
				System.out.println("theEnd = " + theEnd);
				try {
					for (Connection c : cMap.values()) {
						c.getOutputStream().close();
						c.getInputStream().close();
					}
					for (Socket s : socketsMap.values()) {
						s.close();
					}

				} catch (IOException exio) {
				}
				//Thread.sleep(10000);
				logObj.stop();
				
				System.exit(0);
				System.out.println("!!!!!!!!!!!!!!!!!!!!1          16");
				throw new InterruptedException();
			} catch (ClassNotFoundException ex) {
				System.out.println("!!!!!!!!!!!!!!!!!!!!1          17");
			}			
		} catch (InterruptedException exception) {
			Thread.currentThread().interrupt();
		}
		return inputMessage;
	}