fail task on exception

If the task announcement throw exception, set status to fail instead of
retrying it again and again.