public void closeMessageSocket() {
	  	out.close();
    	try {
			in.close();
		} catch (IOException e) {
			System.err.println(e.getMessage());
			e.printStackTrace();
		}
    	try {
			socket.close();
		} catch (IOException e) {
			System.err.println("Socket cannot closed");
			System.err.println(e.getMessage());
			e.printStackTrace();
		}
	}