fix(wait on exit code): Properly exit when waiting for a zero exit code