Now throws error when connection unsafe.
Merge pull request #13 from augier/master

Now throws error when connection unsafe.
Thanks man, major fix :)
Close connection as soon as server identity is retrieved

This is also avoiding a problem with iOS8 where only the first call to plugin will go through. Thanks to closing the connection, the plugin can be called multiple times.
Merge pull request #16 from cvillerm/master

Close connection as soon as server identity is retrieved
Version bumped for release of iOS8 fix