Make sure canceled upload get closed