Adds a new window capability to allow destroying the window. It also changes shutdown handling in telemetry to avoid errors. - Add core:window:allow-destroy to default capabilities - Avoid shutdown errors by returning a pending promise in tracedInvoke - Improve stability during shutdown for in-flight telemetry calls