Handler for kernel-terminated and runtime-terminated messages.
Clears the current runtime immediately to ensure cleanup.
IMPORTANT: For Datalayer runtimes, this terminates the runtime on the server,
which causes the kernel URLs to become inaccessible. The jupyter-react Output
components will show CORS errors as they try to disconnect - this is expected
and unavoidable. The errors are harmless and will stop once cleanup completes.
Handler for kernel-terminated and runtime-terminated messages. Clears the current runtime immediately to ensure cleanup.
IMPORTANT: For Datalayer runtimes, this terminates the runtime on the server, which causes the kernel URLs to become inaccessible. The jupyter-react Output components will show CORS errors as they try to disconnect - this is expected and unavoidable. The errors are harmless and will stop once cleanup completes.