I will add std:::before exit.

I think there are two cases to be considered under one condition: solving of linear equation has fatal problem (not the case iterations exceeds the maximum):
* Run FEM computation standalone without GUI. The computation should be stopped by quitting the program immediately.
* Run FEM computation in GUI. The FEM calculation should be stopped and the program return to GUI.