tasks for cleaning targets and client