Raise ECONNRESET if socket#gets returns nil

Follows ruby driver approach. Fixes #4