I've left Thailand several times in the past few years. I never considered going to Immigration. My TM30 is stapled in my passport.
Now a little off topic rant............This tm30 causes so much confusion because of different interpretations, just imagine what will happen if they try taxing foreigners.