moved 'freeing of all allocated memory' to vmm destructor