code: def close(self):
          
  
          self._no_mute_on_stop_playback()
  
          # First close the subprocess
          self._stop()
  
          # Here is fallback solution and cleanup
          if self.connection_timeout_thread is not None:
              self.connection_timeout_thread.cancel()
          if self.delay_thread is not None:
              self.delay_thread.cancel()
          if self.process is not None:
              os.kill(self.process.pid, 15)
              self.process.wait()
          self.process = None
docs: exit pyradio (and kill player instance)