I think it's fine to modify the `command_failed` condition here. It should probably be receiving a `ProcessExit` instead of just an integer.