(XDK D3D) Cleanup