Iran can close the straight of hormuz as retaliation, and there really isn't anything that can be done about it except for invasion. Other countries have similar capabilities or can acquire them readily. If Cuba wanted to close the gulf in retaliation for a US attack - they could, Denmark could lock the north sea to US shipping and naval traffic etc. etc.