emit error on aborted connection

Emit 'error' if connection is closed before request received fully.
Adjust test-fixtures to postpone socket.close().

add standalone test case on connection aborted
Merge pull request #195 from egirshov/master

Emit error on aborted connection