public static void main(String[] args) throws MenuException {

        try {
            takeAction(Status.MAIN_MENU);

        } catch (Throwable ex) {
            System.out.println("Unexpected error:" + ex.getMessage());
            System.out.println(ex.getStackTrace().toString());
        } finally {
            if (Sudoku.mainFrame != null) {
                Sudoku.mainFrame.dispose();
            }
        }
    }