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