Emit error when host verification fails
Merge pull request #141 from Soarez/master

Emit error when host verification fails