Added res.headersSent if test to res in request.on.socket timeout callback method and req.on error event callback method to prevent error.
Merge pull request #17 from JohnWMay/master

Added res.headersSent if test to res in request.on.socket timeout callba...