code: def stop_capture(self):
          
          super(Treal, self).stop_capture()
          if self._machine:
              self._machine.close()
          self._stopped()
docs: Stop listening for output from the stenotype machine.