prevent garbage collection as vm shuts down