As a student, i think you did excellent, ofcoarse you panic when you don't have much experience and something goes wrong.
I remember the sudden shock and panic I felt, when, on my first flight on my own as a qualified PPL, I thought I broke Manchesters Class A TMA, but after a quick descent, and a check on my map, i just missed it. But it definately gets you going.
Under the circumstances, you did very well!!