repair sampleparticle closecallbackfunc