You're coughing because THC is an irritant to mucus membranes. That's not smoke you're inhaling, so don't worry; if it were, you'd be having the same problems as you did when you smoked joints or blunts.

Those vapors may make you cough a bit, but they are far from smoke, which is essentially poison with THC mixed in.

Peace.