cleanup on meta-data ref