clean Shiny state on the client when R Markdown process is terminated