Add reboot sequence

Added code to restart the system after the registry key has been
modified to apply the change.