Iran has threatened to end cooperation with the United Nations nuclear agency if Tehran 's nuclear program is taken to the Security Council for possible sanctions .