clear the connection after sharing succeeded/failed
now it can download the uploaded file automatically; so now it can share!!