Task restart mechanism