This has happened to me before too. I have even had the unlucky coincidence where the internet goes down right as I click submit.
I don't think there's anything you can do to prevent what TAB does, but writing up the posts in an external text editor sounds like a great idea!