fixed leaky linux file descriptor sockets