public void registerDestructionCallback(final String name, final Runnable callback) {
            final ScopedBeanReference ref = this.references.get(name);
            if (ref != null) {
                ref.setDestructionCallback(callback);
            }
        }
Attaches a destruction callback to the bean with the given name.

@param name The name of the bean to attach the destruction callback to.
@param callback The callback to register for the bean.
grpc-server-spring-boot-starter/src/main/java/net/devh/boot/grpc/server/scope/GrpcRequestScope.java