Fix wmi connection call in wmi check
Bump version to 4.0.2
Merge with wmi_fix branch