private static void deleteFile(Path file) {
    try {
      Files.delete(file);
    }
    catch (IOException e) {
      Logger.getInstance(PreemptiveSafeFileOutputStream.class).warn("cannot delete " + file, e);
    }
  }
private static void deleteFile(Path file)