make sure modules are really turned off

Change-Id: I63d7e0b3c44b8050c4ce96a631e75a156b639e97
Merge topic 'fix_embedded_module_turnoff' into master

9d297337 make sure modules are really turned off