remove taskid even on failure from registry