Changed cb_free to cb_close