free memory in close callback