updated the main flow to check for run state before dequeueing tasks.
updated the dispatcher to be volatile identity after seeing NPE on claim with all primitive prameters apart from the identity.