It tried opening . for writing, which confused the driver into thinking it was writing something but not removing it. So changed to use a different directory instead.