public void Stop() { if (!running) { throw new Exception("Start the instance before stopping"); } // System is not running anymore running = false; isimProcess.Kill(); CleanSimulation(); }