Ensured HTTP streaming connection is closed when stream_quotes() finishes.

stream_quotes() now receives a block rather than an explicit lambda callback.