code: def stop_sync(self):
          
          # Stop to scan
          if self.scanning:
              self.stop_scan()
  
          # Disconnect all connected devices
          for connection_id in list(self.connections.get_connections()):
              self.disconnect_sync(connection_id)
  
          # Stop the baBLE interface
          self.bable.stop()
          # Stop the connection manager
          self.connections.stop()
  
          self.stopped = True
docs: Safely stop this BLED112 instance without leaving it in a weird state