async fn killed(&self) {
        *self.owned_futures.lock().await = Default::default();
        *self.command_inserter.lock().await = Default::default();
    }
Should only be called when output::done
core/models/src/js_engine_types.rs