cleaning up the building of a VM