* Notify wrapper thread so it stops on dispose.
* Properly save sensor ids when quitting.