Refactor how ExitStatus works

Propagate the error if an exit status could not be extracted from it.