public static void main(String[] args) {
		PortScanner frame = new PortScanner();
		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("\nUnable to close link!\n");
						System.exit(1);
					}
				}
				System.exit(0);
			}
		});
	}