core: bind finalize callback to this.