Putin did not plan to lose.
He is lashing out ~ we can expect more threats, because this is highly highly difficult. He has two choices neither of which he expected to have to think about. He has told his country he is on a peackeeping special operation to protect them so he actually can not bomb the shit out of Kyiv (he may still resort to this) and he can't win without bombing the shit out of Kyiv. So he has reached an impasse.
Additionally he did not expect the EU and the West to get their shit together and actually launch the volume of sanctions that even he didn't imagine. He thought he could rely on Germany, Italy etc to cover his arse due to their dependencies on Russia. It could have worked, but sadly for him he didn't.
According to reports he is now feeling the heat inside the Kremlin with reports of pro Kremlin officials and MPs demanding that the war stops in Ukraine.
From every angle this is a total disaster, and he needs to find a way out - and still look like the tough guy.
I am willing to bet that Ukraine and Russia agree to carve up Ukraine - eastern side for Russian Ukrainians and some kind of legal agreement drawn up about Nato and neutrality - IF Putin is serious about unwinding that shit storm with dignity in tact. I would go as far as to say this is actually his last chance to do so...