Agreed. Even as someone who thinks the strikes were justified this was an inevitable outcome. Iran was trying to get as far as they could with their enrichment without provoking a military response. Once there was a military response there was no reason to cooperate.
There might still be room for diplomacy and reentering IAEA. But since Iran leaving the IAEA strengthens their bargaining position this is a logical move for them.