MainViewModel: added destructor to handle saving prefs and ensuring the application shuts down.
Merge pull request #1 from gen3ric/master

MainViewModel: added destructor to handle saving prefs and ensuring the ...