'Called by the parser on element close.'

def end(self, tag):

    try:
        method = getattr(self, ('_handle_%s_tag_end' % tag.tag))
    except AttributeError:
        return
    else:
        return method(tag)
