override fun processTerminated()

in core/src/main/kotlin/com/jetbrains/aspire/worker/AspireAppHost.kt [67:79]


            override fun processTerminated(
                executorId: String,
                env: ExecutionEnvironment,
                handler: ProcessHandler,
                exitCode: Int
            ) {
                val profile = env.runProfile
                if (profile is SessionProfile) {
                    val appHostMainFilePath = profile.aspireHostProjectPath ?: return
                    if (mainFilePath != appHostMainFilePath) return
                    removeSessionProfile(profile)
                }
            }