code: def _handle_end(self):
          
          if self._context & contexts.FAIL:
              if self._context & contexts.TAG_BODY:
                  if is_single(self._stack[1].text):
                      return self._handle_single_tag_end()
              if self._context & contexts.TABLE_CELL_OPEN:
                  self._pop()
              if self._context & contexts.DOUBLE:
                  self._pop()
              self._fail_route()
          return self._pop()
docs: Handle the end of the stream of wikitext.