From what I read a looooooong time ago, there was a document that was never actually signed (or signed by someone who didn't have the authority?). Back then, it was considered a legal loop hole that would allow Texas to legally escape.
Well, I’m sure they had their “Baghdad Bobs” back then, too... :-)