When do changes to the Registry get saved in Windows 10 and Why?