code: def _stop(self):
          
          self._pause()
          self._cmds_q.put(("stop",))
          try:
              self._recorder.terminate()
          except Exception:
              pass
          self._recording = False
docs: Stops recording. Returns all recorded data and their timestamps. Destroys recorder process.