Dear Teacher,
I had trouble with my internet connection, and I accidentally left the lesson when the clock hit the 55-minute mark, so I wasn't able to say a proper goodbye. However, I really enjoyed the class with you. I look forward to seeing you again. Thank you very much—and I apologize for the interruption.