Ensure connect callback is invoked on premature socket hangup

Closes #534
Applies to 2.11.1, only really fixes the case with node-0.10, 0.8 is still being researched upon.
Deprecates pull #542