Ios socket exception bugfix

While creating a network socket when there is not network, IOS Socket exception is thrown by the Mono framework. However, this is not caught by Java Exception.
Couple of lines of code added to catch the Mono exception and to keep the Java compiler happy.