private void exit()
    {
        String save = "";
        while (!(save.equals("y") || save.equals("n")))
        {
            System.out.print(" Save network (y/n) : ");
            try
            {
                save = bufReader.readLine();
                save = save.toLowerCase();
            }
            catch (IOException ioe)
            {
                System.out.println("Input error");
            }
        }
        if (save.equals("y"))
        {
            saveSettings();
            shutdownEnvironment(true);
        }
        else
        {
            shutdownEnvironment(false);
        }
        System.exit(0);
    }