This could have ended much worse.