Force saving preferences on quit