Fixed delayed closure destruction and reference support