def METHOD_NAME(self, http_context, terminal_id=None):
    """
    Test if a terminal is still open.
    :param http_context: HttpContext
    :type http_context: HttpContext
    :param terminal_id: Terminal id
    :type terminal_id: hex
    :return: Alive or not
    :rtype: bool
    """
    if terminal_id in self.mgr:
        return self.mgr[terminal_id].dead
    return True