Remove useless socket