@Override
  protected void finalize() throws Throwable {
    if (isClosed()) {
      return;
    }
    FLog.w(
        TAG,
        "finalize: %s %x still open.",
        this.getClass().getSimpleName(),
        System.identityHashCode(this));
    try {
      close();
    } finally {
      super.finalize();
    }
  }
Ensures that the underlying resources are always properly released.
imagepipeline-base/src/main/java/com/facebook/imagepipeline/image/DefaultCloseableStaticBitmap.java