GUI: Fix cleanup problem when simulation fails, introduced by r17220.

git-svn-id: http://simulationcraft.googlecode.com/svn/trunk@17262 3b4652a1-8050-0410-ac47-3d40261b0f8b