Previous code had legacy `try ... catch` blocks that could catch all exceptions, including `CancellationException`, thrown if the job of a suspending function is cancelled. Indiscriminately catching those can interfere with cancellation, so use `currentCoroutineContext().ensureActive()` to rethrow the exception if the job has been cancelled.