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

Now throws error when connection unsafe.
Thanks man, major fix :)