Reset the VM on loading file or workspace