Create a helper function for dowork
tasks to be used in the.Before
or .After
call that will email details of a task upon failure or set the task ID etc.
There is already some small helpers in place for dowork tasks so until this is ever extracted, might as well add some additional helpers that provide info to help with debugging etc.