def _logout(self):
        """Do logout from zabbix server."""

        if self.auth:
            logger.debug("ZabbixAPI.logout()")

            if self.user.logout():
                self.auth = None