Regularly happens to me, at least once a month, I have brought it back to the garage several times, they have replaced the unit a couple of times, but always the same problem and yet everytime I pull onto the forecourt the damn thing spits out the CD and works perfectly.
The only thing I will say is wait a while, eventually it will right itself (on one occasion this took over a week)