Closing a window

Blitz3D Forums/Blitz3D Beginners Area/Closing a window

Is there a way for Blitz to know when I've closed a window using the close-window 'X' in the corner? I'm using the debugger and keep accidentally closing the window with the X.