John Kerry said the door to a nuclear deal between Iran and the US is not shut.