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