fix for bsod; members of extension should be released before device object is deleted