Does saying "Thank God!" count as using God's name in vain? Would it be alright if I was to say "Thank God?" I'm not sure, as I'm quite a new Christian. This is the context:

I am late for the plane. I rush through the check-ins and stuff, and I reach the plane just in time. I say, "Thank God!". 

Would that be counted as using God's name in vain? This comes from this question.

What about saying "Thank the Lord!" Would that be taking the Lord's name in vain?
Depends on the intent of the speaker. Do they say it with gratitude and in recognition of God? Who could find fault with that? It would not be vain then. But, if it is said without such a sentiment, it is vain.