static private void saveAndExit() {
        if (in != null) {
            try {
                in.close();
            } catch (IOException ex) {
                Logger.getLogger(EditList.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
        System.out.print("Writing to file...");

        EditList.sort();

        try {
            PrintStream out = new PrintStream(new File(filename));
            for (int i = 0; i < shows.size(); i++) {
                out.println(shows.get(i).getSeriesid());
            }
        } catch (FileNotFoundException ex) {
            Logger.getLogger(EditList.class.getName()).log(Level.SEVERE, null, ex);
            System.exit(
                    1);
        }
        System.out.print(" done!\n");
        System.exit(0);
    }