#55 added resetting of the invocation state of a task

#55