Congratulations Nocturnal. It's great that you started training.
Sometimes after a really hard class you will want to give up. No matter how hard it may seem, it's all worth it. Not giving up is the key to success. It doesn't matter if you get your ass kicked in class or you get totally exhausted from the work out... the only thing that matters is you not giving up.
When you say that you "gassed", what exactly do you mean? Did you fart? People fart in my class all the time. One of the more experienced guys loves to let me stack him up when he gets an armbar from the guard and then he farts on me.