End

This statement is used to immediately terminate execution of a program.  If any files or devices are still open (see CLOSE) when execution is terminated, then Just BASIC will close them and present a dialog expressing this fact.  It is good programming practice to close files and devices before terminating execution.

stop

Note:  The STOP statement is functionally identical to END and is interchangable.  Also, make sure that when a program is finished running that it terminates properly with an END statement.  Otherwise the program's windows may all be closed, giving the illusion that it has stopped running, but it will still be resident in memory and may still consume processor resources.