i think this is problematic since it does not call updateStatus before.
IMO it's better to remove this and add below

$exitcode = $this->getExitCode();

if (null === $exitcode) {
    return null;
}