Fixing hint errors
Checking for null sockets
travisplexer: pr-346-osx travis ci test