Japan should have unconditionally surrendered in March, half a year before the nukes, when the US military burned most of Tokyo to the ground in less than two hours.
And yes. Stalin was a bad guy and it's a pity the war didn't end with the demise of both the Nazi and Soviet regimes. This is also irrelevant to the matter of strategic bombings perpetrated by America and Britain.