System.terminate

Function/Meaning
Asynchronous termination of KiriKiri
Type
Method of the System class
Syntax
terminate(code=0)
Arguments
code Specifies the process exit code
Return Value
None (void)
Description
Causes KiriKiri to terminate.
KiriKiri does not terminate immediately when this method is called.
It terminates when control returns to KiriKiri from all event handlers.