TaskStatistics functions get unexpected return codes for running jobs