CI / Build & Test (push) Successful in 2m44s
Read runtime.lastError in the onDisconnect callback so Chrome does not log "Unchecked runtime.lastError: Native host has exited" to the extensions console. The disconnect reason is forwarded to debugLog so it remains visible when Debug Mode is enabled.