private void actionExit() {
        if (!DbConnector.closeConnectionGUI(rm)) return;
                
        int result = JOptionPane.showConfirmDialog(this,
                            "Are you sure you want to exit the application",
                            "Exit Application",
                            JOptionPane.YES_NO_OPTION);
        if (result == JOptionPane.YES_OPTION) {
            setVisible(false);
            System.out.println("Closing Application");
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            dispose();
            System.exit(0);
        }
    }