Fixing bug where exception thrown by Mono is not caught in Java.
Requires a hack since Java compiler does not understand this.
Cleaning up comment
Merge pull request #247 from sridharsundaram/iosSocketExceptionBugfix

Ios socket exception bugfix