retry tasks with caught errors/connection errors