code: def stop(self):
          
          # check that everything is running
          if not self._running:
              logging.warning('Realsense not running. Aborting stop.')
              return False
  
          self._pipe.stop()
          self._running = False
          return True
docs: Stop the sensor.