now cancelling upload safely