Set autoClose to true on /etc/services file read stream.