Lower shutdown delays and improve cleanup of temporaries on Windows