Consume stream to avoid hang