fixed reseting IsConnected on socket exception that indicated that

when there was some issue with the network there was a socket exception in the internals, but it was not catched. Now I explicitly catch that one exception and set IsConnected to false so now it's easier to reconnect and carry on ;)