First cut at detecting a failed task

We want host to know when a machine fails so to
update the active task list and eventually to
reschedule the task on a different machine.