Fixed an issue with quitting OpenCOR while a simulation is still running.

This didn't use to cause problems, but I guess we had just been lucky
until now, i.e. that nothing was taking long enough for
SingleCellViewWidget::checkResults() to fail.