public static void main(String[] args) {
		GetRemoteTime frame = new GetRemoteTime();
		frame.setSize(400, 300);
		frame.setVisible(true);

		frame.addWindowListener(new WindowAdapter() {
			@Override
			public void windowClosing(WindowEvent e) {
				if (socket != null) {
					try {
						socket.close();
					} catch (IOException e1) {
						System.out.println("Unable to close link!!\n");
						System.exit(1);
					}
					System.exit(0);
				}
			}
		});

	}