Nobody knew if bombing Japan was going to end the war, including the Supreme War Council in Japan. War Minister Anami wanted to go on with the war after the first atomic bombing, saying the Allies couldn't have more than one bomb. After the second bomb, he signed a surrender document and committed ritual suicide. There was a big Army pro-war fight-to-the-end faction, which tried a last-minute coup attempt to prevent the surrender.[1]
[1] http://www.amazon.com/Japans-Longest-Pacific-Research-Societ...
[1] https://www.amazon.com/Japans-Longest-Pacific-Research-Socie...