You can return from “theApp.Run(kTRUE);” just by using “any canvas main menu” -> “File” -> “Quit ROOT”.