Clean the preferences manager