Electron.NET CLI and API :11.5.1
.NET Version:.net 5.0
Node.js Version: 14.16.0
I already have the main window and create a new window. If I close the new window and then call up the development tool, an error will be reported.

Steps to Reproduce:
- Create a main window during initialization
- Use a button to create a new window
- Close the new window to call up the development tool
- If there is a jump page in the main window, an error will be reported every time you jump