Added "extra safe" code for deleting on Windows

Fixes GH-121