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