Remove useless close socket code

Was told that OC auto closes sockets on reboot/shutdown
Therefor this is useless