I was undoing the screws on the base part of the light fitting ( i.e. the unit that the bulb goes into) to connect the cable when the bits shot out of the unit. There is a terminal cap I.e the cup shaped piece of metal that makes contact with the lightbulb, a spring, a small t shaped piece of metal ...