fix closure memory leak bug. add vm modle.