Read data from handle before call the uv_close()