Well what a good experience. You could spend your whole time training towards your PPL (and I assume that is why you were with an instructor) in benign conditions, whereas you now have first hand experience of Mother nature springing a few surprises. It will stand you in good sted.
I never could understand those people who pass their IMC having never seen the inside of a cloud throughout their training!