Removed ensure block to close connection in stream_quotes(), as it was closing the connection prematurely.