Hi,
Maybe I was doing this wrong, but after a successful connection I close the client without closing the connection gracefully. In this case the server crashes and no try catch around the instantiation code helps the situation.
I will send a pull request now and hopefully that will better explain what I mean.
Thanks for the library!