Raise ConnectionError on IncompleteRead.

Fixes #207 and #328.