Set d3d_handle to NULL after release.