Ground Issue???

So I went to do a quick test light check and when I removed the socket the turn signal came on after like 2 seconds. When I go to plug it back in theres a small spark between the socket and the housing then the light quits. Odd it only does it on the one side running lights are good.