now making sure upload queue cleared if upload cancelled.