def _cleanup(self):
    if ((self.writer is not None) and (self.last_block is not None)):
        self._log_params(self.last_block)
    if (self.exported_model is False):
        self._export_model()
    super()._cleanup()
def _cleanup(self):
    if ((self.writer is not None) and (self.last_block is not None)):
        self._log_params(self.last_block)
    if (self.exported_model is False):
        self._export_model()
    super()._cleanup()