updated the dispatcher to make the claim process more readable and also the task worker with support for a minimum sleep cycle and parameterised system recovery sleep.