public static void showMessage(String message, String title, String exception, boolean fatal) {
        JOptionPane.showMessageDialog(
                null,
                message,
                title,
                exception != null ? JOptionPane.ERROR_MESSAGE : JOptionPane.INFORMATION_MESSAGE);
        if (exception != null) {
            if (fatal) {
                System.err.println(exception);
                RoosterProgramma.getInstance().shutdown();
            } else {
                writeToLog(exception);
            }
        }
    }