Fix - upload doesn't stop when file that is being uploaded is removed from the queue. Address #960.