Fixed a couple of major bugs

These were related to session resuming. Now SasAnalysisThread must be explicitly stopped from SasAnalysis instead of auto-killing itself if Gromacs is in "stopping" mode. This avoids very strange situations inside SasAnalysis.