We could use luaL_checkstring for simpler code.
  Only close the domain-socket if missing.