Modified to work with the new FSOCKERR log code.