Done fixing an issue with closing the last file (through the Core CellML editing plugin) and reopening it reseting all the settings (closes #362).

We clear all the user settings as late as possible.