add check_tasks to check for zombie processes and gather task metrics