Enable saving on exit

Enable saving when pressing 'Exit'. TODO: Should save when settings changed instead.