@Override
    public void run() {
        String response;
        try {
            Scanner scan = new Scanner(in, "CP1251");
            while((response = scan.nextLine()) != null) ServerListener.process(response);
            closed = true;
        }catch(Exception ex) {
            ex.printStackTrace();
            warn("Connection lost!", true);
        }
    }