stopApp(returnValue = invisible())
returnValue
The value that should be returned from runApp().
runApp()
Stops the currently running Shiny app, returning control to the caller of runApp().