fix SocketException and IOException