[dev] Propagate return codes to compute_eos functions.