Forgot to close port in reading config files