Example code:
Private Sub Form_Unload(Cancel As Integer) Cancel = 1 End Sub
To reproduce, set the cancel integer to any integer above 0 at the unload sub.
Hit F5 to run the program in the IDE.
Hit the stop button in the IDE.
The debug console states "[DEBUGGER] Waiting for remaining forms to close..."
The code can still be modified somewhat, but the program running in the IDE remains running, and cannot be stopped without closing TwinBasic completely and re-loading the project.
Expected behaviour:
Pressing the stop button in the IDE should override the code which prevents the form being closed at run-time.
Screenshot:

Desktop (please complete the following information):
- OS: Windows 10
- twinBASIC IDE Beta 953