[PATCH v3 4/9] make conf_ports() exit immediately after logging error