Added an error check ( VM not powered on)