tls socket missing error listener

This fixes #585

I wasn't able to add a unit test since it's making use of tls and i would need to stub that out.  I usually use proxyquire or sinon to create mock objects for unit testing.