code: def close(self):
          
          if self.read_option('save_pointer'):
              self._update_last_pointer()
          super(S3Writer, self).close()
docs: Called to clean all possible tmp files created during the process.