fixed usage for SocketException