code: def exitClient(self):
      
      self.sendRtspRequest(self.TEARDOWN)
      #self.handler()
      os.remove(CACHE_FILE_NAME + str(self.sessionId) + CACHE_FILE_EXT) # Delete the cache image from video
      rate = float(self.counter/self.frameNbr)
      print('-'*60 + "\nRTP Packet Loss Rate :" + str(rate) +"\n" + '-'*60)
      sys.exit(0)
docs: Teardown button handler.