only execute quit hook if we're at the default prompt
Merge branch 'master' of github.com:rstudio/rstudio