Fix issue where task end was not always correct when specifying HELL_SENTINEL_STRINGS