President Hassan Rouhani of Iran recently warned the US over the possible exit of the Iran nuclear deal.