bit more clean up on the linux sockets