rem: if (shutdown(fd, 0)) syslog(LOG_ERR, "socket_close(): shutdown() on socket FD %d failed: %m", fd);
context: void socket_close(int fd) {  DEBUGFD(syslog(LOG_DEBUG, "socket_close() on socket FD %d", fd));  if (shutdown(fd, 0))     syslog(LOG_ERR, "socket_close(): shutdown() on socket FD %d failed: %m", fd);  if (close(fd))    syslog(LOG_ERR, "socket_close(): close() on socket FD %d failed: %m", fd);}