Revised function to stop app when session closes, previous commit did not work
Revised function to stop app when session closes, previous commit did not work

dancrocker/DCRShinyApp,nzinck17/DCRShinyApp