(D3D) Cleanups