Check exit code in program scheduler as well