<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def xstatus(self):
 """ UNIX-like exit status, only coherent if the context has stopped. """

        return max(node.xstatus for node in self.nodes) if len(self.nodes) else 0