fix for bsod; members of extension should be released before device obje...

...ct is deleted