'Destructor'

def __del__(self):

    if (self.bulker and self.bulker.bulk_data):
        logger.error('pyes    object    %s    is    being    destroyed,    but    bulk    operations    have    not    been    flushed.    Call    force_bulk()!', self)
        self.bulker.flush_bulk(True)
