When this happens I have to end task in task manager to close the window and have the ability to play again.
To reproduce: make a server script error and play with script debugger enabled and always show exceptions then click “End Session”.
System Information: Windows 11, CPU 12th Gen Intel(R) Core™ i5-12400F.
Expected behavior
To close the window correctly.