Added quit to sensorthread.