code: def stop(self):
          
          # check that everything is running
          if not self._running or self._device is None:
              logging.warning('Primesense not running. Aborting stop')
              return False
  
          # stop streams
          if self._depth_stream:
              self._depth_stream.stop()
          if self._color_stream:
              self._color_stream.stop()
          self._running = False
          
          # Unload openni2
          openni2.unload()
          return True
docs: Stop the sensor