Had the same situation some time ago, my method to get out the socket was by inserting a thick cardboard strip with the magnet attached to the bottom, that way it did not stick to the whole body and only attracted the socket once it got near the bottom.
It took me a while to figure this out but when I used it, it was successful first time.