refactored remove reboot key from registry