code: def end(self):
          
          TftpContext.end(self, not self.filelike_fileobj)
          self.metrics.end_time = time.time()
          log.debug("Set metrics.end_time to %s" % self.metrics.end_time)
          self.metrics.compute()
docs: Finish up the context.