Made profiles save on quit.