Add code to shut down R automatically once the browser is shutdown. (Session)