D3D has the best response to these reference leaks ever: on shutdown, some part of window closing or screen mode resetting will freeze for about five seconds, depending on the window mode. No indication why is given.