Remove unneeded socket