diff --git a/cylc/flow/scheduler_cli.py b/cylc/flow/scheduler_cli.py index f9042fb01c7..cbf2c973356 100644 --- a/cylc/flow/scheduler_cli.py +++ b/cylc/flow/scheduler_cli.py @@ -417,7 +417,7 @@ async def _run(parser, options, reg, is_restart, scheduler): # stop cylc stop except SchedulerError: ret = 1 - except KeyboardInterrupt as exc: + except (KeyboardInterrupt, asyncio.exceptions.CancelledError) as exc: try: await scheduler.shutdown(exc) except Exception as exc2: