presto-main/src/main/java/io/prestosql/util/FinalizerService.java/FinalizerService/addFinalizer
class FinalizerService:    public void addFinalizer(Object referent, Runnable cleanup)
    {
        requireNonNull(referent, "referent is null");
        requireNonNull(cleanup, "cleanup is null");
        finalizers.add(new FinalizerReference(referent, finalizerQueue, cleanup));
    }