public static void main(String[] args) {
        Runtime.getRuntime().addShutdownHook(halterThread);

        application = new Application();
        application.start();

        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String line;

        try {
            while((line = reader.readLine()) != null) {
                if(line.equalsIgnoreCase("halt"))
                    System.exit(0);
                if(line.equalsIgnoreCase("exit"))
                    System.exit(0);
                if(line.equalsIgnoreCase("stop"))
                    System.exit(0);
                if(line.equalsIgnoreCase("close"))
                    System.exit(0);
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }