Handling failed heartbeats

If we are unable to make a heartbeat we must give up on the job
because another worker has taken the job.