add {error, E} response handling in process_stream/3