Sanitize hostConf. Call cleanup in errorExit()