The optional shutdown method is called when the script is unloaded public void shutdown ( ) { . . . } Shutdown occurs when: the Script node is deleted the browser loads a new world
public void shutdown ( ) { . . . }