def on_delete(self, forced):
        if not forced and self.handler is not None and not self.is_closed:
            self.promote()
        else:
            self.close()
Called by the session management class when item is
dataset/ETHPy150Open mrjoes/tornadio/tornadio/pollingsession.py/PollingSession.on_delete