catch any error and stop trying to send pings
close the socket on unload
Merge pull request #34 from michaelbjames/socket/pipe

Socket/pipe