fix bug 1062606 - remove vm from meta-db if vm is disconnected