It could have gone so much worse.