connection: use 'on' instead of 'once' for error event
update readable-stream dependency
Parser: prefer built-in Writable over readable-stream
connection: add guards