handle errors on wmi query