Improved task exception handling.

If there is an exception in one of the tasks for an item,
the system should now fail the item and start a new item
after a delay of 10 seconds.

Closes #14.