minor fixes of handling a failed chunk
fixing exceptions raised after unpausing/resuming/removing transfer because of non-existing deferred. it happend only after loading state from previous run