fixed termination for multi-worker simulation mode

TODO next: implement manual termination from the console