completed save on exit
fixed unregistered receiver error. known issue: start with an demo, the real device does not work either.