closing stdout for curl on reuse + formatting.
(This prevents explosion of open file handles on many requests.)