Fix build to see if close socket is causing a problem