This is why its a good idea to put newer riders up front in a pack. That way you can ride your limits instead of riding someone elses limits who are more experienced. Going beyond your limits can get you into serious trouble on the road.
But, glad everything worked out. Although i agree with my above statement, i also disagree to a point. Some people can handle being pushed. We have a new rider in our group and he rides in the back by choice and has been pushed beyond what i think was his limits, but he could handle it and i think he picked it up faster than he would have by himself. You can either be afraid of it (rr tracks, open grate bridges etc) or you can dive into it head on and come out on top. Some people can handle it, some can't.
Welcome to the world of self meditation though. The bike is a great way to relax AND have fun at the same time. Trying to explain it to a non rider is impossible. I like to think of it as the best time i ever had not thinking about anything. It really clears your head. Not to mention addicting