System.exitOnWindowClose

Function/Meaning
Whether to exit when the main window is closed
Type
Property of the System class (read/write)
Description
Represents whether to exit when the main window (the first instance of the Window class created) is closed. This value can also be set. The default is true.
Note that if the main window is closed and no other debug-related windows are displayed, KiriKiri will remain in the system without exiting and may become uncontrollable (you may have to terminate the process from the Task Manager).