resource leak cleanup if vm creation fails