Named temporary files can't be opened twice on Windows. This should fix it.