public CommandClient(String host, int port) {
        this.HOST = host;
        this.PORT = port;
        
        try {
            this.socket = new Socket(HOST, PORT);
            System.out.println("Connected ...");
        } catch (UnknownHostException e) {
            System.err.println("UnknownHostException with Socket: " + e.getMessage());
            System.exit(-1);
        } catch (SocketException e) {
            System.err.println("SocketException with Socket: " + e.getMessage());
            System.exit(-1);
        } catch (IOException e) {
            System.err.println("IOExcpetion with Socket: " + e.getMessage());
            System.exit(-1);
        } catch (Exception e) {
            System.err.println("Unknown Excpetion with Socket: " + e.getMessage());
            System.exit(-1);
        }
        
        try {
            this.is = this.socket.getInputStream();
            this.reader = new BufferedReader(new InputStreamReader(is));
            this.os = this.socket.getOutputStream();
            //this.writer = new PrintWriter(os, true);
            this.oos = new ObjectOutputStream(os);
        } catch (SocketException e) {
            System.err.println("SocketException with reader/writer: " + e.getMessage());
            System.exit(-1);
        } catch (IOException e) {
            System.err.println("IOExcpetion with reader/writer: " + e.getMessage());
            System.exit(-1);
        } catch (Exception e) {
            System.err.println("Unknown Excpetion with reader/writer: " + e.getMessage());
            System.exit(-1);
        }
    }