diff --git a/src/ert/cli/main.py b/src/ert/cli/main.py index 29dd65c6df0..8b9cba7e338 100644 --- a/src/ert/cli/main.py +++ b/src/ert/cli/main.py @@ -132,7 +132,7 @@ def run_cli(args: Namespace, _: Any = None) -> None: thread.start() try: monitor.monitor(status_queue) - except (SystemExit, KeyboardInterrupt): + except (SystemExit, KeyboardInterrupt, OSError): print("\nKilling simulations...") model.cancel()