Check for undefined socket