Starting to write the logic for claiming orphaned tasks and removing old listener/node records