Have you considered replacing the bulb?
Ha!!...that’s not the problem. The light is on...but keeps coming out of the socket.