shutdown simulation thread when user calls StopSimulation so it doesn't take up resources