fix a second crash because memory should be freed in the uc_close callback, not right after uv_close