@zack-shoylev this seems fragile; we most likely cannot delete a file on Windows because someone else has a handle to it.  We should  revert this commit and close the handle.