public void run() {
		try {
			// alert inside thread
			System.out.println("Server: Server connected to a new client...");

			// process received message
			Message msg = null;
			do {
					msg = (Message)objectFromClient.readObject();
					
					if(msg != null) {
						parseMessage(msg);
						msg = null;
					}
			} while(!exit);
			
			// finalise and close
			objectFromClient.close();
			objectToClient.close();
			socket.close();
			System.out.println("Server: Server disconnected from a client...");
			
		} catch (IOException e) {
			e.printStackTrace();
		} catch (ClassNotFoundException e) {
			System.out.println(">>>The read object was not of type 'Message'");
			e.printStackTrace();
		}
	}