def qteKillMiniApplet(self):
        if self._qteMiniApplet is None:
            return
        if not self.qteIsMiniApplet(self._qteMiniApplet):
            msg = ('Mini applet does not have its mini applet flag set.'
                   ' Ignored.')
            self.qteLogger.warning(msg)
        if self._qteMiniApplet not in self._qteAppletList:
            msg = 'Custom mini applet not in applet list --> Bug.'
            self.qteLogger.warning(msg)
        else:
            try:
                self._qteMiniApplet.qteToBeKilled()
            except Exception:
                msg = 'qteToBeKilledRoutine is faulty'
                self.qteLogger.exception(msg, exc_info=True, stack_info=True)
            win = self._qteMiniApplet._qteCallingWindow
            app = self.qteNextApplet(windowObj=win)
            if app is not None:
                self.qteMakeAppletActive(app)
            else:
                app = self.qteNextApplet(skipInvisible=False, skipVisible=True)
                if app is not None:
                    self.qteMakeAppletActive(app)
                else:
                    self._qteActiveApplet = None
            self._qteAppletList.remove(self._qteMiniApplet)
        self._qteMiniApplet.close()
        self._qteMiniApplet.deleteLater()
        self._qteMiniApplet = None