I'm going to be generous and say even if he hadn't had walked in, it wasn't a certainty that Yuki would have gone through with it.

But the again I tend to give the best possible interpretations to people's behaviour like that.