I had a somewhat similar situation occur to me. When returning from, literally my first cross-country after getting my PPL, there was a crash at my home airport. When preparing to land, I was told by the tower that the airport was closed, and I had to divert. This surprisingly shook me up...