I’m somewhat curious how to do this as well. I am using Kotlin server side and have a couple of Spring controllers that boot at application launch and then stick around forever. Wanted some of them to be able to spin off large batch updates asynchronously. Had my controller class extending CoroutineScope. Ran into an issue with exceptions being thrown inside a launch {} and I think what I needed to do was declare an exception handler in order to not cause that to brick my scope.