directx function command list close failed with einvalidarg