Added mechanisms to control timeout for WMI queries (which can sometimes never return).