Fixed singleton when R session is restarted (causing new JVM to start)