vm.rb fix VM state when it's powered off