Added security for --do already finished tasks