Fix a lot of bugs
Fix snapin reboot
Force modules to stop when shutdown is scheduled