code: def stop(self):
          
          # Check that everything is running
          if not self._running:
              logging.warning('Webcam not running. Aborting stop')
              return False
  
          if self._cap:
              self._cap.release()
              self._cap = None
          self._running = False
  
          return True
docs: Stop the sensor.