code: def stopPlayer(self, show_message=True):
          
          try:
              self.player.close()
          except:
              pass
          finally:
              self.playing = -1
              if show_message:
                  self.log.write('{}: Playback stopped'.format(self._format_player_string()), thread_lock=None, help_msg=True)
docs: stop player