Fixed leftover file problem when wget fails