Flush settings to disk.