Guard against failed unique file creation.