Cleanup settings.