Adds ESXi wait VM state method
minor fix